diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6b661bd3df4..55accabcd06 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-06-28 Geoffrey Keating + + * decl2.c (start_objects): Mark constructor-runnning function + as artificial. + 2007-06-26 Simon Martin PR c++/32111 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index b745183f1af..9ad06b49ef8 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2320,6 +2320,10 @@ start_objects (int method_type, int initp) TREE_PUBLIC (current_function_decl) = 0; + /* Mark as artificial because it's not explicitly in the user's + source code. */ + DECL_ARTIFICIAL (current_function_decl) = 1; + /* Mark this declaration as used to avoid spurious warnings. */ TREE_USED (current_function_decl) = 1;