c++/9621: const int typedef is rejected

patrick.rabau@gs.com patrick.rabau@gs.com
Fri Feb 7 23:56:00 GMT 2003

>Number:         9621
>Category:       c++
>Synopsis:       const int typedef is rejected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 07 23:56:00 UTC 2003
>Originator:     Patrick Rabau
>Release:        gcc 3.2.1
Solaris 8
const int typedef T1;

This fails to compile, even though it is legal C++.
The same line without the const is correctly accepted.
  int typedef T2;



More information about the Gcc-bugs mailing list