[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / pr79091.C
blobad8cf5a43e5a32eb648b96090a6859b531620e04
1 // PR 79091 ICE mangling an unnamed enum in a tempate instantiation.
3 enum  {
4   One = 1
5 };
7 template<int Options>
8 class Matrix {};
10 template<int Dim>
11 Matrix<Dim ? One : 0> *Bar ()
13   return 0;
16 template<int Opt> 
17 Matrix<Opt> *Baz ()
19   return 0;
22 bool Foo ()
24   return Baz<1> () == Bar<1> ();