This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9621: const int typedef is rejected
- From: patrick dot rabau at gs dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 7 Feb 2003 23:50:30 -0000
- Subject: c++/9621: const int typedef is rejected
- Reply-to: patrick dot rabau at gs dot com
>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
>Closed-Date:
>Last-Modified:
>Originator: Patrick Rabau
>Release: gcc 3.2.1
>Organization:
>Environment:
Solaris 8
>Description:
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;
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: