This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8384: g++ -g gives ICE, but compiles ok without -g
- From: wb at fnal dot gov
- To: gcc-gnats at gcc dot gnu dot org
- Date: 28 Oct 2002 17:14:35 -0000
- Subject: c++/8384: g++ -g gives ICE, but compiles ok without -g
- Reply-to: wb at fnal dot gov
>Number: 8384
>Category: c++
>Synopsis: g++ -g gives ICE, but compiles ok without -g
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 28 09:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Walter E. Brown
>Release: gcc v3.2
>Organization:
>Environment:
Cygwin
>Description:
The following short program gives an internal compiler error with v3.2 when compiled with -g, but compiles correctly when -g flag is not used.
// ----------
template< class T >
T fakemake();
template< class T >
struct Identity {
typedef T type;
};
template< class T, class U>
struct Result
: public Identity< typeof( true ? fakemake<T>() : fakemake<U>() )>
{};
int main () {
Result<short,int>::type i = 0;
return i;
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: