[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / operator5.C
blob1c0c29231914b0c746017111fb60c2830e76eb75
1 // Copyright (C) 2004 Free Software Foundation, Inc.
2 // Contributed by Nathan Sidwell 7 Dec 2004 <nathan@codesourcery.com>
4 // PR 18803: reject legal
5 // Origin: Wolfgang Bangerth <bangerth@dealii.org>
7 struct A { 
8   int operator() (); 
9 }; 
11 template <int> void foo () { 
12   A &a = *new A(); 
13   const int i = a(); 
14