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++/16489] New: G++ incorrectly rejects use of a null constant integral expression as a null constant pointer


Consider

    const int NULL = 0;
    int main() { double* p = NULL; }

G++ incorrectly rejects the above.  This regression is also present
in GCC-3.3.x, in direct violation of the C++ standard.

-- 
           Summary: G++ incorrectly rejects use of a null constant integral
                    expression as a null constant pointer
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gdr at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: Plateform independent


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16489


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