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++/71302] New: -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call


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.

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