------- Comment #3 from pinskia at gcc dot gnu dot org  2006-03-24 16:14 -------
Fixed in 3.4.0.
Reduced testcase:

namespace std
{
  class type_info   {};
}
int main(int argc, char **argv)
{
  int filas, columnas;
  typeid( new double[filas][columnas] );
}


This is invalid code:
t.cc: In function ‘int main(int, char**)’:
t.cc:8: error: ‘columnas’ cannot appear in a constant-expression


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |ice-on-invalid-code
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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

Reply via email to