This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70808] Spurious -Wzero-as-null-pointer-constant for nullptr_t
- From: "jaak at ristioja dot ee" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2016 09:38:45 +0000
- Subject: [Bug c++/70808] Spurious -Wzero-as-null-pointer-constant for nullptr_t
- Auto-submitted: auto-generated
- References: <bug-70808-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70808
Jaak Ristioja <jaak at ristioja dot ee> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jaak at ristioja dot ee
--- Comment #1 from Jaak Ristioja <jaak at ristioja dot ee> ---
A minimum example I've found for this is:
void f() { decltype(nullptr)(); }
With -std=c++11 the warning is emitted in versions 4.8.5, 4.9.3, 5.3.0, 5.4.0
and 6.2.0, but not in 4.7.4.