This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12581] [3.4 Regression] gcc rejects typeof use for the return type


------- Additional Comments From gabor dot greif at lucent dot com  2003-11-12 12:35 -------
(In reply to comment #4)
> This is not a bug.

I beg your pardon. If I understand your comment #3 correctly,
a __typeof__() can appear "anywhere a typedef name could be used".

A typedef name can certainly appear a the result type of a PTMF type
declaration. So I cannot understand why a typeof construct must not.
This looks illogical to me.

This bug omits some stuff from its parent PR#12577. There I see:
foobar.cpp:35: error: expected unqualified-id

I ask myself why a typeof construct cannot be an unqualified-id?

Also, I think the analysis in comment #1 is completely bogus.
The example mentioned in it does not deal with pointer-to-member-function types
at all.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12581


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]