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++/26844] in compile time



------- 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


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