gcc/testsuite/g++.dg/parse/error14.C
raw| 1 | // { dg-options "-fshow-column" } |
| 2 | // PR c++/13970 |
| 3 | |
| 4 | struct X |
| 5 | { |
| 6 | template< typename Z > Z Zunc() |
| 7 | { |
| 8 | return Z(); |
| 9 | } |
| 10 | |
| 11 | template< typename Z > void Zinc() |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | void tst() |
| 16 | { |
| 17 | Zunc<int>(); |
| 18 | |
| 19 | Zinc<int>( //); |
| 20 | // } |
| 21 | |
| 22 | }; // { dg-error "1:expected primary-expression before '.' token" "primary" } |
| 23 | // { dg-error "3:expected" "at end of input" { target *-*-* } .-1 } |