[Bug c++/37093] [4.2/4.3/4.4 Regression] ICE with pointer to member template parameters
bangerth at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jan 30 15:49:00 GMT 2009
------- Comment #16 from bangerth at gmail dot com 2009-01-30 15:49 -------
(In reply to comment #5)
> Excuse me, but I do not understand what makes this code invalid. Could anybody
> explain? If so, does this apply to all the test cases given (also for bugs that
> are marked as duplicates of this bug)?
>
In this code:
---------------------
template <typename T>
int bar(int T::* p)
{
return foo<p>(0);
}
---------------------
'p' is a variable, but only constant expressions can be used as template
arguments for foo<.>
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37093
More information about the Gcc-bugs
mailing list