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
>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:
More information about the Gcc-bugs
mailing list