------- 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

Reply via email to