Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / nontype14.C
blob93338512b3a8572672bd29f27ee0083df3d49523
1 // PR c++/23789
3 template <int W> struct X { 
4   template <int W2> 
5   X< (W+(W&&W) > 1 ? W+(W&&W) : 1)+1> 
6   operator + (const X<W2>&) const; 
7 }; 
8  
9 template <int dummy> void foo() 
10
11   X<6> A,B; 
12   A + B;