------- Comment #3 from rodolfo at rodsoft dot org  2010-07-21 03:03 -------
(In reply to comment #2)
> This enum value has an anonymous type which is not valid in the  
> context of templates in C++03/98. It is valid in the current draft of C 
> ++0x though. But I cannot remember if 4.5 implements that rule for - 
> std=gnu++0x (-std=c++0x).

But I'm not using that anonymous type for template argument deduction (i.e.:
foo<bar<RUNTIME>,bar<RUNTIME>>), I'm just using in a comparison with an int.
But even if I turn it into a named type (i.e.: enum value_t { RUNTIME=-1 };),
it doesn't compile.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45012

Reply via email to