[Bug c++/27403] T() can be an integer constant but is rejected as not one
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri May 26 15:26:00 GMT 2006
------- Comment #1 from bangerth at dealii dot org 2006-05-26 15:26 -------
gcc parses this as
template <class T>
typename A<T (&)() >::I foo (T) { return 0; }
i.e. as meaning that the argument is not an integer, but a function that
returns an integer.
A simpler testcase is this (icc accepts it, though I'm not sure who's right):
-------------------
template <int> struct A {};
A<int()> foo (int);
-------------------
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=27403
More information about the Gcc-bugs
mailing list