This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
On Mon, 11 Dec 2006, Jason Merrill wrote:
| Nathan Sidwell wrote:
| > Jason Merrill wrote:
| >
| >> When we see the first T in "T T();" we have no idea that it's supposed
| >> to be a type-specifier, so we can't look it up specially.
| >
| > I don't understand, we must be looking it up specially, otherwise the
| > struct stat hack wouldn't work.
|
| No. We are looking it up normally, but the member function declaration
| has not been processed yet, so lookup finds the outer declaration.
Mike Miller just replied on the core reflector concurring the lookup
is normal, therefore the program is invalid.
| Without a special rule, this would be well-formed. I assume that the
| rule is there to allow for compilers to use some sort of delayed parsing
| of member declarations.
I have been told that Cfront used that, and there was a real desire to
ban struct stat hack outright.
-- Gaby
- References:
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory
- Re: [PATCH][C++] Fix PR29433, make C++ use a lot less time/memory