[Bug c++/28886] [4.1/4.2 regression] Template specialization with array rejected

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 30 04:01:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-08-30 04:01 -------
A NON_LVALUE_EXPR is getting into the way:
(gdb) p debug_tree(max)
 <non_lvalue_expr 0xb7d387a0
    type <integer_type 0xb7cc9284 int public type_6 SI
        size <integer_cst 0xb7cb43d8 constant invariant 32>
        unit size <integer_cst 0xb7cb4168 constant invariant 4>
        align 32 symtab 0 alias set -1 precision 32 min <integer_cst 0xb7cb4390
-2147483648> max <integer_cst 0xb7cb43a8 2147483647>
        pointer_to_this <pointer_type 0xb7cc9c38>>
    readonly constant invariant
    arg 0 <template_parm_index 0xb7d38740 type <integer_type 0xb7cc9284 int>
        readonly constant invariant
       index 1 level 1 orig_level 1>>


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-30 04:01:19
               date|                            |


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



More information about the Gcc-bugs mailing list