[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / pr62314-2.C
blobdeb0cb7b69dfa47b9917c9d62f3505f81bff3743
1 // { dg-options "-fdiagnostics-show-caret" }
3 template<class T>
4 class a {} // { dg-error "11: expected .;. after class definition" }
5 class temp {};
6 a<temp> b;
7 struct b {
8 } // { dg-error "2: expected .;. after struct definition" }
10 /* Verify that we emit fixit hints.  */
12 /* { dg-begin-multiline-output "" }
13  class a {}
14            ^
15            ;
16    { dg-end-multiline-output "" } */
18 /* { dg-begin-multiline-output "" }
19  }
20   ^
21   ;
22    { dg-end-multiline-output "" } */