http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27403
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27403
--- Comment #2 from Andrew Pinski 2012-02-08
20:16:38 UTC ---
t4.cc:4:17: error: type/value mismatch at argument 1 in template parameter list
for ‘template > struct A’
t4.cc:4:17: error: expected a constant of type ‘int’, got ‘T()’
--- Comment #1 from bangerth at dealii dot org 2006-05-26 15:26 ---
gcc parses this as
template
typename A::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