2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / arg3.C
blob050aa33bcde1a55c00973accb1f0f6720c878797
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 27 Mar 2003 <nathan@codesourcery.com>
6 // PR 10224. Rejected a valid constant argument.
8 template <bool B> struct X {
9   struct I {};
12 template <typename T> struct Y {
13   static const bool selector = true;
14   typedef typename X<selector>::I helper;
17 Y<int> i;