Commit 9a801c38 by Gabriel Dos Reis Committed by Gabriel Dos Reis

decl.c (grokdeclarator): Set constexprness before announcing friendship.

	* decl.c (grokdeclarator): Set constexprness before announcing
	friendship.

Co-Authored-By: Jason Merrill <jason@redhat.com>

From-SVN: r152393
parent b12d5fd4
2009-10-01 Gabriel Dos Reis <gdr@cse.tamu.edu>
Jason Merrill <jason@redhat.com>
* decl.c (grokdeclarator): Set constexprness before announcing
friendship.
2009-10-01 Gabriel Dos Reis <gdr@cs.tamu.edu> 2009-10-01 Gabriel Dos Reis <gdr@cs.tamu.edu>
* decl.c (record_builtin_java_type): Undo unintended change. * decl.c (record_builtin_java_type): Undo unintended change.
......
...@@ -9299,10 +9299,10 @@ grokdeclarator (const cp_declarator *declarator, ...@@ -9299,10 +9299,10 @@ grokdeclarator (const cp_declarator *declarator,
return error_mark_node; return error_mark_node;
} }
DECL_DECLARED_CONSTEXPR_P (decl) = constexpr_p;
decl = do_friend (ctype, unqualified_id, decl, decl = do_friend (ctype, unqualified_id, decl,
*attrlist, flags, *attrlist, flags,
funcdef_flag); funcdef_flag);
DECL_DECLARED_CONSTEXPR_P (decl) = constexpr_p;
return decl; return decl;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment