This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26844] in compile time
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2006 16:14:23 -0000
- Subject: [Bug c++/26844] in compile time
- References: <bug-26844-12402@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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