1 // { dg-do assemble } 2 3 // Copyright (C) 2000 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 25 Nov 2000 <nathan@codesourcery.com> 5 6 // We lost information about which base wasn't an aggregate type. 7 8 typedef int I; 9 typedef int cI; 10 11 struct A {}; 12 13 typedef const A cA; 14 typedef A pA; 15 16 struct B : I {}; // { dg-error "" } not an aggregate 17 struct C : cI {}; // { dg-error "" } not an aggregate 18 struct D : cA {}; // cv-qualified is fine per DR 484 19 struct E : pA {}; 20