This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11078] [ABI] ICE in write_type with typeof and templates
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2004 14:39:52 -0000
- Subject: [Bug c++/11078] [ABI] ICE in write_type with typeof and templates
- References: <20030603112812.11078.jtotland1@chello.no>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-08-09 14:39 -------
(In reply to comment #15)
> The issue of <type> within <expr-primary> is for cases like c<typeof(int*)>.
> The current compiler treats that as being identical to c<int*>.
Question: do we really need typeof(<type>)? It does not make sense to me. typeof
(type) is always "type", so I cannot see why we should wrap it within a typeof.
If GCC currently accepts this, we could easily flag it as an error and reject
it. Gaby?
After this, we don't need anything more than the "<type> ::= Y <expression> E"
extension.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11078