summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/name-clash9.C
blob: 4167f47b4a94465b337b56bd35a7d31d225717e2 (plain)
1
2
3
4
5
6
7
8
// { dg-do compile }
// PR c++/48010

struct A
{
  struct type {}; // { dg-error "conflicts with previous" }
  typedef int type; // { dg-error "declaration" }
};