[Bug c++/71302] New: -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call

eugene.zelenko at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu May 26 21:36:00 GMT 2016


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.


More information about the Gcc-bugs mailing list