1 2 3 4 5 6 7 8 9 10 11 12 13
// { dg-do assemble } #include <stdio.h> template <int n1> double val <int> () // { dg-error "" } bogus code { return (double) n1; } int main () { printf ("%d\n", val<(int)3> ()); // { dg-error "" } val undeclared }