Bug 11578 - cp/mangle.c doesn't handle __typeof__
Summary: cp/mangle.c doesn't handle __typeof__
Status: RESOLVED DUPLICATE of bug 11078
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 14:59 UTC by Jakub Jelinek
Modified: 2003-07-20 03:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-07-18 15:01:55


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2003-07-18 14:59:01 UTC
template <typename T> struct S { T t; };

template <typename I, typename J> void f (S<__typeof__ (I() + J())>) {}
template void f<int, long>(S<__typeof__ (int() + long())>);

causes ICE in write_type.
Comment 1 Andrew Pinski 2003-07-18 15:01:55 UTC
I can confirm this also happens on the mainline (20030718).
Comment 2 Gabriel Dos Reis 2003-07-18 15:05:47 UTC
Subject: Re:  New: cp/mangle.c doesn't handle __typeof__

"jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11578
| 
|            Summary: cp/mangle.c doesn't handle __typeof__

I think there is already a PR for this issue. (Same for __alignof__).
It should follow the same line of treatment as we got for
__imag__/__real__ recently.  Will look into that.

-- Gaby
Comment 3 Andrew Pinski 2003-07-20 03:20:41 UTC
A dup of bug 11078.

*** This bug has been marked as a duplicate of 11078 ***