This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: non-ambiguous typedefs
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Howard Hinnant <hhinnant at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 09 Nov 2005 04:07:20 +0100
- Subject: Re: non-ambiguous typedefs
- References: <2B7EC321-0116-4E43-8415-CB27B4735150@apple.com>
Howard Hinnant <hhinnant@apple.com> writes:
| Hi All,
|
| I'm wondering if the following behavior is:
|
| 1. An already reported bug.
| 2. Not reported, I need to file a bugzilla.
| 3. Disputed.
|
| Here's the test case:
|
| typedef unsigned short ushort;
|
| namespace X
| {
| typedef unsigned short ushort;
| }
|
| using namespace X;
|
| int main()
| {
| ushort us = 0;
| }
|
| We currently get:
|
| error: 'ushort' was not declared in this scope
Plain compiler bug. I'm not aware of any existing report to that
effect, though GCC/g++ currently is completely confused when it sees
apparently ambiguous declarations, and would report non-existent
declaration. That needs fixing.
-- Gaby