https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80289

--- Comment #2 from Damien GERARD <damien at iwi dot me> ---
Seems to be a regression :)

$ /usr/bin/g++ --version                                                       
                                                                               
                                                                               
                                                                    [61455007]
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)


$ /usr/bin/g++ -std=c++11 -W -Wall /tmp/constexpr-test.cpp && ./a.out          
                                                                               
                                                                               
                                                                    [61455007]
/tmp/constexpr-test.cpp:3:22: error: redefinition of ‘constexpr const char
text1 []’
 constexpr char text1[] = "hello world";
                      ^
/tmp/constexpr-test.cpp:2:16: error: ‘constexpr const char text1 [12]’
previously defined here
 constexpr char text1[] = "hello world";
                ^
/tmp/constexpr-test.cpp:4:22: error: redefinition of ‘constexpr const char
text1 []’
 constexpr char text1[] = "hello world";
                      ^
/tmp/constexpr-test.cpp:2:16: error: ‘constexpr const char text1 [12]’
previously defined here
 constexpr char text1[] = "hello world";

Reply via email to