1// { dg-do compile } 2 3// Copyright (C) 2004 Free Software Foundation, Inc. 4// Contributed by Nathan Sidwell 15 Dec 2004 <nathan@codesourcery.com> 5 6// PR 18905. bogus error 7// Origin: Andrew Pinski <pinskia@gcc.gnu.org> 8 9int f1(char); 10template <int t> 11void f(void) 12{ 13 const char* const suffixes = "plpv"; 14 f1(suffixes[t]); 15} 16