Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / typedef7.C
blob42cf4f1c5e23a55901da6c1bc5d2b7806a8a85e2
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 typedef int I;
5 typedef int I;
7 // DR56 makes clear that duplicate typedefs in class scopes are
8 // invalid.
10 struct A {
11   typedef int I; // { dg-error "" }
12   typedef int I; // { dg-error "" }
15 template <class T>
16 struct S {
17   typedef int I;  // { dg-error "" }
18   typedef int I;  // { dg-error "" }