public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7959: g++ 3.3: ICE in cp_expr_size
@ 2002-09-17 18:56 snyder
  0 siblings, 0 replies; 2+ messages in thread
From: snyder @ 2002-09-17 18:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7959
>Category:       c++
>Synopsis:       g++ 3.3: ICE in cp_expr_size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 17 18:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.3 20020917 (experimental)
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 unknown
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long : (reconfigured)  : (reconfigured) 
>Description:

g++ crashes when compiling the code below with -O2:

$ g++ -O2 -c x.cc
x.cc: In function `void local_to_global()':
x.cc:15: internal compiler error: in cp_expr_size, at cp/cp-lang.c:304
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$


>How-To-Repeat:

--------------------------
struct allocator
{
  allocator(const allocator&);
};

struct basic_string
{
  allocator 	_M_dataplus;
  basic_string(const char*);
  basic_string& operator=(const basic_string& __str);
};

struct XGSIllegalDimension
{
  XGSIllegalDimension(const basic_string whose) {}
};

void local_to_global()
{
  throw XGSIllegalDimension("xxx");
}
--------------------------

>Fix:
	<how to correct or work around the problem, if known (multiple lines)>
>Release-Note:
>Audit-Trail:
>Unformatted:
 SEND-PR: Leave "Confidential" as "no"; all GCC PRs are public.
 SEND-PR: critical     GCC is completely not operational; no work-around known.
 SEND-PR: serious      GCC is not working properly; a work-around is possible.
 SEND-PR: non-critical Report indicates minor problem.
 SEND-PR: medium       The problem should be solved in the next release.
 SEND-PR: low          The problem should be solve in a future release.
 SEND-PR: doc-bug          The documentation is incorrect.
 SEND-PR: accepts-illegal  GCC fails to reject erroneous code.
 SEND-PR: rejects-legal    GCC gives an error message for correct code.
 SEND-PR: wrong-code       The machine code generated by gcc is incorrect.
 SEND-PR: ice-on-legal-code   GCC gives an Internal Compiler Error (ICE)
 SEND-PR:                     for correct code
 SEND-PR: ice-on-illegal-code GCC gives an ICE instead of reporting an error
 SEND-PR: pessimizes-code     GCC misses an important optimization opportunity
 SEND-PR: sw-bug              Software bug of some other class than above
 SEND-PR: change-request      A feature in GCC is missing.
 SEND-PR: support             I need help with gcc.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/7959: g++ 3.3: ICE in cp_expr_size
@ 2002-09-28  7:20 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-09-28  7:20 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, snyder

Synopsis: g++ 3.3: ICE in cp_expr_size

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 28 07:20:30 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7959


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-28 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-17 18:56 c++/7959: g++ 3.3: ICE in cp_expr_size snyder
2002-09-28  7:20 lerdsuwa

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).