This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71302] New: -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call
- From: "eugene.zelenko at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 May 2016 20:27:43 +0000
- Subject: [Bug c++/71302] New: -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71302
Bug ID: 71302
Summary: -Wzero-as-null-pointer-constant: misleading caret
location for pointer in function call
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: eugene.zelenko at gmail dot com
Target Milestone: ---
Created attachment 38579
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38579&action=edit
Simple test case
-Wzero-as-null-pointer-constant incorrectly points to closing bracket instead
of actual argument which should take nullptr.
Same problem exists in 4.9 and 5.