1// { dg-do assemble } 2// { dg-prune-output "mangled name" } 3// 4// Copyright (C) 2001 Free Software Foundation, Inc. 5// Contributed by Nathan Sidwell 29 Apr 2001 <nathan@codesourcery.com> 6 7// Bug 2664. We failed to convert_from_reference for non-type 8// template parms. 9 10struct cow { }; 11 12cow c; 13 14void func (cow &c) {} 15void operator-(cow &c) {} 16 17template<cow &C> void test() 18{ 19 func(C); //OK 20 -C; //bogus error 21} 22 23int main() 24{ 25 test<c> (); 26} 27