Commit 4656bc85 by Mark Mitchell Committed by Mark Mitchell

re PR c++/12795 (ICE with attribute __alias__)

	PR c++/12795
	* name-lookup.c (pushdecl): Do not treated any functions as being
	"nested" in C++.

	PR c++/12795
	* g++.dg/ext/attrib10.C: New test.

From-SVN: r74849
parent 2dbd0234
2003-12-19 Mark Mitchell <mark@codesourcery.com>
PR c++/12795
* name-lookup.c (pushdecl): Do not treated any functions as being
"nested" in C++.
2003-12-19 Jason Merrill <jason@redhat.com>
PR c++/13371
......
......@@ -562,7 +562,7 @@ pushdecl (tree x)
if (current_function_decl && x != current_function_decl
/* A local declaration for a function doesn't constitute
nesting. */
&& !(TREE_CODE (x) == FUNCTION_DECL && !DECL_INITIAL (x))
&& TREE_CODE (x) != FUNCTION_DECL
/* A local declaration for an `extern' variable is in the
scope of the current namespace, not the current
function. */
......
2003-12-19 Mark Mitchell <mark@codesourcery.com>
PR c++/12795
* g++.dg/ext/attrib10.C: New test.
2003-12-19 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/cleanup-10.c: New test.
......
// PR c++/12795
void foo()
{
extern void bar () __attribute__ ((__alias__ ("BAR")));
bar ();
}
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