Bug 30837 - typeof fails
Summary: typeof fails
Status: RESOLVED DUPLICATE of bug 6709
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-17 19:56 UTC by Ivan Godard
Modified: 2007-02-17 23:33 UTC (History)
7 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Godard 2007-02-17 19:56:09 UTC
struct foo{ typedef int bar; };
int main() {
    foo f;
    typeof(f)::bar i = 0;
    return 0;
    }


gets you:

~/ootbc/sim/test$ g++ foo.cc
foo.cc: In function 'int main()':
foo.cc:4: error: expected initializer before 'i'
Comment 1 Andrew Pinski 2007-02-17 20:02:04 UTC

*** This bug has been marked as a duplicate of 6709 ***
Comment 2 Ivan Godard 2007-02-17 20:50:20 UTC
Not fixed for four years?  How come?
Comment 3 Wolfgang Bangerth 2007-02-17 23:33:54 UTC
(In reply to comment #2)
> Not fixed for four years?  How come?

No volunteers to fix it? Not an important bug that bothers many people?