This is a GCC extension to the standard:
You can use the -pedantic
option to cause GCC to issue a warning, or -std=c++98
to make in an error, when you use one of these extensions (in case portability is a concern).
More Related Contents:
- Array with size 0 [duplicate]
- Compiler Crash with C++ Array
- C++ average of negative elements in array [closed]
- How do I use arrays in C++?
- Capturing function exit time with __gnu_mcount_nc
- std::vector versus std::array in C++
- C++ syntax for explicit specialization of a template function in a template class?
- Error “undefined reference to ‘std::cout'”
- C++ return array from function [duplicate]
- Arrays vs Vectors: Introductory Similarities and Differences [closed]
- Returning arrays from a function in c++
- How to compile for Windows on Linux with gcc/g++?
- std::stoi doesn’t exist in g++ 4.6.1 on MinGW
- Linking Fortran and C++ binaries using gcc
- How to include header files in GCC search path?
- How to force gcc to link an unused static library
- C++11: Correct std::array initialization?
- What is the difference between std::array and std::vector? When do you use one over other? [duplicate]
- Explicit specialization in non-namespace scope does not compile in GCC
- C++: Safe to use longjmp and setjmp?
- How to use OpenSSL’s SHA256 functions
- Access array beyond the limit in C and C++ [duplicate]
- C++ std::vector vs array in the real world
- Linking problems due to symbols with abi::cxx11?
- What is “strip” (GCC application) used for?
- Difference between regex_match and regex_search?
- In C/C++, is char* arrayName[][] a pointer to a pointer to a pointer OR a pointer to a pointer?
- Default libraries linked in by gcc?
- const auto std::initializer_list difference between Clang and GCC
- Where are string literals stored, and can I modify them?