[Bug c++/18905] [4.0 Regression] Strange error: subscripted value is neither array nor pointer

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 9 15:25:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-09 15:25 -------
Reduced testcase:
int f1(char);
template <int t>
void f(void)
{
 const char* const suffixes = "plpv";
 f1(suffixes[t]);
}

: Search converges between 2004-11-25-014001-trunk (#656) and 2004-11-25-161001-trunk 
(#657).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-09 15:25:25
               date|                            |
            Summary|Strange error: subscripted  |[4.0 Regression] Strange
                   |value is neither array nor  |error: subscripted value is
                   |pointer                     |neither array nor pointer
   Target Milestone|---                         |4.0.0


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



More information about the Gcc-bugs mailing list