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

--- Comment #4 from Daniel Krügler <daniel.kruegler at googlemail dot com> 
2012-01-29 17:28:14 UTC ---
(In reply to comment #3)
> However compilation still fails if pi is given internal linkage by declaring 
> it > static, i.e.
> 
> int main()
> {
>   static constexpr float pi = 3.14;
> 
> Or even:
> 
> namespace {
>   static constexpr float pi = 3.14;
> }

I agree that both examples should work and that the lack of that is a bug when
compiled in C++11 mode. Paolo, this bug should be reopened.

Reply via email to