[Bug c++/31724] New: [4.3 Regression] More "same canonical type node" fun

tbm at cyrius dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 27 09:03:00 GMT 2007


It appears the following didn't get fixed when you fixed PR31078 and
PR31103.  This is one of these annoying case where the warning doesn't show
up all the time, but if you run gcc over it long enough you'll see it:

g++ -O3 -fPIC -DNDEBUG -Iagg/include -c -o agg/src/agg_vcgen_stroke.o
agg/src/agg_vcgen_stroke.cpp
agg/include/agg_math_stroke.h: In member function 'void
agg::math_stroke<VertexConsumer>::calc_miter(VC&, const agg::vertex_dist&,
const agg::vertex_dist&, const agg::vertex_dist&, double, double, double,
double, agg::line_join_e, double, double) [with VertexConsumer =
agg::pod_bvector<agg::point_base<double>, 6u>]':
agg/include/agg_math_stroke.h:218: warning: same canonical type node for
different types agg::point_base<double> [(long int)<anonymous>] and
agg::point_base<double> [(long int)<anonymous>]
 <array_type 0x2b422def0000
    type <record_type 0x2b422e204180 point_base needs-constructing type_1
type_5 type_6 BLK
        size <integer_cst 0x2b422dcfede0 constant invariant 128>
        unit size <integer_cst 0x2b422dcfee10 constant invariant 16>
        align 64 symtab 0 alias set 7 canonical type 0x2b422e204180
        fields <field_decl 0x2b422e2046c0 x type <real_type 0x2b422dd24600
double>
            used nonlocal decl_3 DF file agg/include/agg_basics.h line 480
            size <integer_cst 0x2b422dcfeb70 constant invariant 64>
            unit size <integer_cst 0x2b422dcfeba0 constant invariant 8>
            align 64 offset_align 128
            offset <integer_cst 0x2b422dcfe720 constant invariant 0>
            bit offset <integer_cst 0x2b422dd20360 constant invariant 0>
context <record_type 0x2b422e204180 point_base> chain <field_decl
0x2b422e2049c0 y>> context <namespace_decl 0x2b422e1bd5b0 agg>
       needs-constructor X() X(constX&) this=(X&) n_parents=0 use_template=1
interface-unknown
        pointer_to_this <pointer_type 0x2b422def2540> reference_to_this
<reference_type 0x2b422deeda80> chain <type_decl 0x2b422e2009c0 point_base>>
    needs-constructing BLK
    size <mult_expr 0x2b422e2f5ac0
        type <integer_type 0x2b422dd110c0 bit_size_type public unsigned
sizetype DI size <integer_cst 0x2b422dcfeb70 64> unit size <integer_cst
0x2b422dcfeba0 8>
            align 64 symtab 0 alias set -1 canonical type 0x2b422dd11e40
precision 64 min <integer_cst 0x2b422dd20360 0> max <integer_cst 0x2b422dd20330
18446744073709551615>>
        side-effects invariant
        arg 0 <nop_expr 0x2b422e2f5b00 type <integer_type 0x2b422dd110c0
bit_size_type>
            side-effects invariant
...


-- 
           Summary: [4.3 Regression] More "same canonical type node" fun
           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=31724



More information about the Gcc-bugs mailing list