1// { dg-do assemble } 2// Copyright (C) 2000 Free Software Foundation, Inc. 3// Contributed by Nathan Sidwell 7 Sep 2000 <nathan@codesourcery.com> 4 5// Bug 508. We failed to set/clear lastiddecl appropriately for 6// operator names. 7 8struct A {}; 9 10template <typename N> void foo (A, int); 11template <typename N> void operator<< (A, int); 12 13int main() 14{ 15 A a; 16 operator<< <bool>(a, 0); 17 foo <bool>(a, 0); 18} 19