public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8384: g++ -g  gives ICE, but compiles ok without -g
@ 2002-10-28  9:16 wb
  0 siblings, 0 replies; only message in thread
From: wb @ 2002-10-28  9:16 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-28 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-28  9:16 c++/8384: g++ -g gives ICE, but compiles ok without -g wb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).