mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 23:55:18 +08:00
re PR c++/20552 (ICE in write_type, at cp/mangle.c:1579)
PR c++/20552 * g++.dg/ext/typeof10.C: New test. From-SVN: r108796
This commit is contained in:
parent
8ef1f2df8f
commit
2f201ba050
@ -1,3 +1,8 @@
|
||||
2005-12-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
PR c++/20552
|
||||
* g++.dg/ext/typeof10.C: New test.
|
||||
|
||||
2005-12-19 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* gcc.dg/mt-loopi1.c: New.
|
||||
|
11
gcc/testsuite/g++.dg/ext/typeof10.C
Normal file
11
gcc/testsuite/g++.dg/ext/typeof10.C
Normal file
@ -0,0 +1,11 @@
|
||||
// PR c++/20552
|
||||
// Origin: Ivan Godard <igodard@pacbell.net>
|
||||
|
||||
template<int> struct A
|
||||
{
|
||||
void foo()
|
||||
{
|
||||
typedef int T; // { dg-error "previous" }
|
||||
typedef __typeof__(*this) T; // { dg-error "conflicting" }
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user