1// { dg-do compile } 2 3// Copyright (C) 2003 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 27 Mar 2003 <nathan@codesourcery.com> 5 6// PR 10224. Rejected a valid constant argument. 7 8template <bool B> struct X { 9 struct I {}; 10}; 11 12template <typename T> struct Y { 13 static const bool selector = true; 14 typedef typename X<selector>::I helper; 15}; 16 17Y<int> i; 18