Re: [Bug c++/45012] New: Invalid ambiguity on partial class specialization matching

2010-07-20 Thread Andrew Pinski
On Jul 20, 2010, at 7:43 PM, "rodolfo at rodsoft dot org" > wrote: The following code doesn't compile unless variable RUNTIME is defined as a "static const int" instead of an "enum": This enum value has an anonymous type which is not valid in the context of templates in C++03/98. It is

[Bug c++/45012] New: Invalid ambiguity on partial class specialization matching

2010-07-20 Thread rodolfo at rodsoft dot org
The following code doesn't compile unless variable RUNTIME is defined as a "static const int" instead of an "enum": #include enum { RUNTIME = 0 }; // it compiles with the previous line commented out and the next commented in // static const int RUNTIME=0; template struct foo; template class