X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.robertl%2Feb12.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.robertl%2Feb12.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=5c948f11b589259d86fef14a57aece51100a9daf;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb12.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb12.C deleted file mode 100644 index 5c948f11..00000000 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb12.C +++ /dev/null @@ -1,32 +0,0 @@ -// Build don't link: -// Error: Internal Compiler Error in 2.7.2. & egcs 1.0.0 - -#ifndef NO_META_MAX -template -struct meta_max { - enum { max = (N1 > N2) ? N1 : N2 }; -}; -#endif - -struct X { - enum { - a = 0, - n = 0 - }; -}; - -template -struct Y { - - enum { - a = T1::a + T2::a, - - // NB: if the next line is changed to - // n = (T1::n > T2::n) ? T1::n : T2::n - // the problem goes away. - - n = meta_max::max - }; -}; - -int z = Y::a;