This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80247] 'nullptr' was not declared in this scope


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Sumit from comment #0)
> I am migrating my code from 3.4.5 to 4.8.1 and enabled c++11 using

Why would you choose 4.8.1 and not 4.8.5 ? There are lots of bug fixes in later
4.8.x releases, especially if you're trying to use C++11 (which was not fully
supported by GCC 4.8.x and so labelled experimental, and under heavy
development with lots of fixes in later releases).

> -std=C++11

The correct option is -std=c++11 not -std=C++11

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]