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
This commit is contained in:
Mark Mitchell 2005-02-24 02:42:17 +00:00 committed by Mark Mitchell
parent 03ce14dbc0
commit 1ceb02beed
4 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -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;
}

View file

@ -1,3 +1,8 @@
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

View file

@ -0,0 +1,7 @@
// PR c++/19878
struct S {
char k;
};
char const volatile S::* const p01 = &S::k;