[Bug c++/27403] T() can be an integer constant but is rejected as not one

2013-01-19 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27403 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/27403] T() can be an integer constant but is rejected as not one

2012-02-08 Thread pinskia at gcc dot gnu.org
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()’

[Bug c++/27403] T() can be an integer constant but is rejected as not one

2006-05-26 Thread bangerth at dealii dot org
--- 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