Commit f31c9f09 by Douglas Gregor Committed by Doug Gregor

re PR c++/35315 (ICE with attribute transparent_union)

2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35315
	* tree-inline.c (build_duplicate_type): When we make a
	duplicate type, make it unique in the canonical types system.

2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35315
	* g++.dg/ext/attrib32.C: Add another test case.

From-SVN: r132779
parent 359be76e
2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35315
* tree-inline.c (build_duplicate_type): When we make a
duplicate type, make it unique in the canonical types system.
2008-02-29 Tom Tromey <tromey@redhat.com>
* toplev.c (input_file_stack, input_file_stack_tick, fs_p,
......
2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
PR c++/35315
* g++.dg/ext/attrib32.C: Add another test case.
2008-02-29 Tom Tromey <tromey@redhat.com>
* g++.dg/warn/pragma-system_header2.C: Ignore "included from"
......@@ -9,3 +9,14 @@ void bar()
{
foo(0);
}
typedef union U1 { int i; } U2 __attribute__((transparent_union));
static void foo2(U1) {}
static void foo2(U2) {}
void bar2(U1 u1, U2 u2)
{
foo2(u1);
foo2(u2);
}
......@@ -3723,5 +3723,7 @@ build_duplicate_type (tree type)
pointer_map_destroy (id.decl_map);
TYPE_CANONICAL (type) = type;
return type;
}
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