[Bug c++/29927] template instantiation with function type

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Wed Nov 22 03:59:00 GMT 2006



------- Comment #2 from bangerth at dealii dot org  2006-11-22 03:59 -------
What exactly do you expect the code to do? 
  foo<int ()>();
leads to an instantiation of foo<T> with 
  T= int()()
i.e. reference to "no-arg function returning int". From
thereon I am a bit confused what exactly you intend to
do in foo()...

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29927



More information about the Gcc-bugs mailing list