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++/31078] New: [4.3 Regression] warning: same canonical type node for different types


I'm not quite sure what to make of this.  It's not an ICE, but it still looks
like a compiler bug.  GCC 4.2 doesn't show this, only current 4.3 does:

(cross)1591:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/g++ -c firebird2-jrn.cc
firebird2-jrn.cc: In function 'void error(ISC_STATUS*, jrn*, int, TEXT*)':
firebird2-jrn.cc:29: warning: same canonical type node for different types TEXT
[1] and const char [1]
 <array_type 0x2ba387b70480
    type <integer_type 0x2ba387b64840 TEXT string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879df300 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba387b70540>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>
 <array_type 0x2ba387b70e40
    type <integer_type 0x2ba3879f5e40 char readonly string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879f5e40 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba3879f5f00>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>
firebird2-jrn.cc:29: warning: same canonical type node for different types TEXT
[1] and const char [1]
 <array_type 0x2ba387b70480
    type <integer_type 0x2ba387b64840 TEXT string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879df300 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba387b70540>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>
 <array_type 0x2ba387b70e40
    type <integer_type 0x2ba3879f5e40 char readonly string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879f5e40 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba3879f5f00>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>
firebird2-jrn.cc:29: warning: same canonical type node for different types TEXT
[1] and const char [1]
 <array_type 0x2ba387b70480
    type <integer_type 0x2ba387b64840 TEXT string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879df300 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba387b70540>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>
 <array_type 0x2ba387b70e40
    type <integer_type 0x2ba3879f5e40 char readonly string-flag QI
        size <integer_cst 0x2ba3879cd7b0 constant invariant 8>
        unit size <integer_cst 0x2ba3879cd7e0 constant invariant 1>
        align 8 symtab 0 alias set -1 canonical type 0x2ba3879f5e40 precision 8
min <integer_cst 0x2ba3879cd750 -128> max <integer_cst 0x2ba3879cd8a0 127>
        pointer_to_this <pointer_type 0x2ba3879f5f00>>
    QI size <integer_cst 0x2ba3879cd7b0 8> unit size <integer_cst
0x2ba3879cd7e0 1>
    align 8 symtab 0 alias set -1 canonical type 0x2ba387b70600
    domain <integer_type 0x2ba3879f5780
        type <integer_type 0x2ba3879df000 long unsigned int public unsigned
sizetype DI
            size <integer_cst 0x2ba3879cdb40 constant invariant 64>
            unit size <integer_cst 0x2ba3879cdb70 constant invariant 8>
            align 64 symtab 0 alias set -1 canonical type 0x2ba3879dfd80
precision 64 min <integer_cst 0x2ba3879cdba0 0> max <integer_cst 0x2ba3879ee420
-1>>
        DI size <integer_cst 0x2ba3879cdb40 64> unit size <integer_cst
0x2ba3879cdb70 8>
        align 64 symtab 0 alias set -1 canonical type 0x2ba3879f5780 precision
64 min <integer_cst 0x2ba3879cd6f0 0> max <integer_cst 0x2ba3879cd6f0 0>>>


-- 
           Summary: [4.3 Regression] warning: same canonical type node for
                    different types
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


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