Commit 1ceb02be by Mark Mitchell Committed by Mark Mitchell

re PR c++/19878 (ICE in import_export_decl)

	PR c++/19878
	* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
	with internal linkage.

	PR c++/19878
	* g++.dg/init/const2.C: New test.

From-SVN: r95490
parent 03ce14db
2005-02-23 Mark Mitchell <mark@codesourcery.com>
PR c++/19878
* decl.c (grokvardecl): Set DECL_INTERFACE_KNOWN for declarations
with internal linkage.
2005-02-23 Alexandre Oliva <aoliva@redhat.com>
* decl.c (grokvardecl): Don't exempt anonymous types from having
......
......@@ -5950,6 +5950,8 @@ grokvardecl (tree type,
warning ("non-local variable %q#D uses local type %qT", decl, t);
}
}
else
DECL_INTERFACE_KNOWN (decl) = 1;
return decl;
}
......
2005-02-23 Mark Mitchell <mark@codesourcery.com>
PR c++/19878
* g++.dg/init/const2.C: New test.
2005-02-23 Hans-Peter Nilsson <hp@axis.com>
PR tree-optimization/20100
......
// PR c++/19878
struct S {
char k;
};
char const volatile S::* const p01 = &S::k;
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