Index: src/Parser/DeclarationNode.cc
===================================================================
--- src/Parser/DeclarationNode.cc	(revision 1cfe640dd169620472275bd588873b6a77d54e6e)
+++ src/Parser/DeclarationNode.cc	(revision feb999f1fbddbd9d84e6082c9f58dbf8d9c2eac4)
@@ -225,6 +225,6 @@
 } // DeclarationNode::newEnumValueGeneric
 
-DeclarationNode * DeclarationNode::newEnumInLine( const string name ) {
-	DeclarationNode * newnode = newName( new std::string(name) );
+DeclarationNode * DeclarationNode::newEnumInLine( const std::string * name ) {
+	DeclarationNode * newnode = newName( name );
 	newnode->enumInLine = true;
 	return newnode;
Index: src/Parser/DeclarationNode.h
===================================================================
--- src/Parser/DeclarationNode.h	(revision 1cfe640dd169620472275bd588873b6a77d54e6e)
+++ src/Parser/DeclarationNode.h	(revision feb999f1fbddbd9d84e6082c9f58dbf8d9c2eac4)
@@ -30,5 +30,5 @@
 	static DeclarationNode * newEnumConstant( const std::string * name, ExpressionNode * constant );
 	static DeclarationNode * newEnumValueGeneric( const std::string * name, InitializerNode * init );
-	static DeclarationNode * newEnumInLine( const std::string name );
+	static DeclarationNode * newEnumInLine( const std::string * name );
 	static DeclarationNode * newName( const std::string * );
 	static DeclarationNode * newTypeParam( ast::TypeDecl::Kind, const std::string * );
Index: src/Parser/parser.yy
===================================================================
--- src/Parser/parser.yy	(revision 1cfe640dd169620472275bd588873b6a77d54e6e)
+++ src/Parser/parser.yy	(revision feb999f1fbddbd9d84e6082c9f58dbf8d9c2eac4)
@@ -2815,5 +2815,9 @@
 		{ $$ = DeclarationNode::newEnumValueGeneric( $2, $3 ); }
 	| INLINE type_name
-		{ $$ = DeclarationNode::newEnumInLine( *$2->symbolic.name ); }
+		{
+			$$ = DeclarationNode::newEnumInLine( $2->symbolic.name );
+			$2->symbolic.name = nullptr;
+			delete $2;
+		}
 	| enumerator_list ',' visible_hide_opt identifier_or_type_name enumerator_value_opt
 		{ $$ = $1->set_last( DeclarationNode::newEnumValueGeneric( $4, $5 ) ); }
