blob: 713957a319dbd90f079645f5eabf613da448019a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-do compile }
// { dg-options "-fshow-column -std=c++98" }
// Properly print CALL_EXPRs while dumping expressions
double g;
int func(double);
template <int>
struct Foo {};
Foo<func(g)> f; // { dg-error "5:'int func.double.' cannot appear in a constant-expression" "func double" { target *-*-* } 11 }
// { dg-error "10:'g' cannot appear in a constant-expression" "g" { target *-*-* } 11 }
// { dg-error "11:a function call cannot appear in a constant-expression" "call" { target *-*-* } 11 }
// { dg-error "12:template argument 1 is invalid" "invalid template argument" { target *-*-* } 11 }
// { dg-error "15:invalid type in declaration before ';' token" "invalid type" { target *-*-* } 11 }
|