[Bug c++/87413] strlen accepted in array declaration

2018-09-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87413 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/87413] strlen accepted in array declaration

2018-09-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87413 Martin Sebor changed: What|Removed |Added Keywords||diagnostic CC|

[Bug c++/87413] strlen accepted in array declaration

2018-09-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87413 --- Comment #2 from Jonathan Wakely --- It's a GNU extension in C++, so we can decide whether it's valid or not.

[Bug c++/87413] strlen accepted in array declaration

2018-09-24 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87413 --- Comment #1 from Bernd Edlinger --- so current trunk accepts the variant test1.c with __builtin_strlen both C and C++: $ gcc -Wall -S test1.c $ gcc -x c++ -Wall -S test1.c Don't know it that is valid.