PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / dependent-name4.C
blobb2b5814befb6642d136faeb026e13784badb74e7
1 // { dg-do compile }
3 // Dependent arrays of invalid size cause template instantiation failure.
5 // We'll get an error message (duplicate matching templates) if the first
6 //  pattern is incorrectly allowed to match.
8 template<int M> void foobar (int (*) [M] = 0 );
9 template<int M> void foobar ( );
11 void fn (void)
13   foobar<0>();
14   foobar<-1>();