public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7880: Internal compiler error when passing template class to new operator
@ 2002-09-10  7:36 celliott
  0 siblings, 0 replies; 3+ messages in thread
From: celliott @ 2002-09-10  7:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: james


>Number:         7880
>Category:       c++
>Synopsis:       Internal compiler error when passing template class to new operator
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 10 07:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Elliott
>Release:        3.2
>Organization:
>Environment:
i686-pc-linux-gnu   Redhat 7.3
>Description:
# /usr/local/bin/g++ test.cpp
test.cpp: In member function `void TestClass4::Func()':
test.cpp:41: Internal compiler error in convert_from_eh_region_ranges_1, at 
   except.c:1404
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

# /usr/local/bin/g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /root/gcc-3.2/configure --enable-languages=c++
Thread model: posix
gcc version 3.2
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.ii"

IyAxICJ0ZXN0LmNwcCIKIyAxICI8YnVpbHQtaW4+IgojIDEgIjxjb21tYW5kIGxpbmU+IgojIDEg
InRlc3QuY3BwIgoKdHlwZWRlZiB1bnNpZ25lZCBpbnQgc2l6ZV90OwoKdGVtcGxhdGUgPGNsYXNz
IFQ+IGNsYXNzIFRlc3RUZW1wbGF0ZQp7CnB1YmxpYzoKICAgICAgICB+VGVzdFRlbXBsYXRlKCk7
Cn07CgpjbGFzcyBDVGVzdENsYXNzMQp7Cn07Cgp0eXBlZGVmIFRlc3RUZW1wbGF0ZTxDVGVzdENs
YXNzMT4gUFRlc3RDbGFzczE7CgpjbGFzcyBUZXN0Q2xhc3MyCnsKcHVibGljOgogICAgICAgIGlu
bGluZSB2b2lkIG9wZXJhdG9yIGRlbGV0ZSh2b2lkICogQnVmUCwgUFRlc3RDbGFzczEgUG9vbFAp
OwogICAgICAgIGlubGluZSB2b2lkICogb3BlcmF0b3IgbmV3KHNpemVfdCBTaXplLCBQVGVzdENs
YXNzMSBQb29sUCk7CiAgICAgICAgVGVzdENsYXNzMih1bnNpZ25lZCBpbnQgRW52U2l6ZSk7Cn07
CgpjbGFzcyBUZXN0Q2xhc3MzCnsKcHVibGljOgogICAgICAgIFBUZXN0Q2xhc3MxIFB0cigpOwp9
OwoKZXh0ZXJuIFRlc3RDbGFzczMgKiBfRXh0UHRyOwoKY2xhc3MgVGVzdENsYXNzNAp7CnB1Ymxp
YzoKICAgICAgICB2b2lkIEZ1bmMoKTsKfTsKCnZvaWQgVGVzdENsYXNzNDo6RnVuYygpCnsKICAg
IFRlc3RDbGFzczIgKiBUZXN0UHRyID0gbmV3KF9FeHRQdHItPlB0cigpKSBUZXN0Q2xhc3MyKDI4
KTsKfQo=


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

* Re: c++/7880: Internal compiler error when passing template class to new operator
@ 2002-11-21  6:56 Volker Reichelt
  0 siblings, 0 replies; 3+ messages in thread
From: Volker Reichelt @ 2002-11-21  6:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/7880; it has been noted by GNATS.

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: james@tga.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
        nobody@gcc.gnu.org
Cc: celliott@tga.com
Subject: Re: c++/7880: Internal compiler error when passing template class to new operator
Date: Fri, 15 Nov 2002 14:08:20 +0100

 Hi,
 
 the templates have nothing to do with the problems
 (I'll therefore change the synopsis of the PR).
 The testcase can be reduced to the following code snippet
 without templates that still crashes the compiler.
 
 ------------------------------snip here------------------------
 typedef unsigned int size_t;
 
 struct A
 {
     ~A();
 };
 
 struct B
 {
     void  operator delete (void *, A);
     void* operator new    (size_t, A);
     B();
 };
 
 struct C
 {
     A bar();
 };
 
 void foo()
 {
     new(C().bar()) B;
 }
 ------------------------------snip here------------------------
 
 With gcc 3.0.x - 3.2.1 I get the following ICE:
 
 PR7880.cc: In function `void foo()':
 PR7880.cc:23: Internal compiler error in convert_from_eh_region_ranges_1, at 
    except.c:1404
 Please submit a full bug report, [etc.]
 
 With gcc 2.95.3 I also get an ICE.
 The problem seems to be fixed in mainline.
 
 BTW, the bug has probably the same reason as PR 8582.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8582
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7880
 
 


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

* Re: c++/7880: Internal compiler error when passing template class to new operator
@ 2002-09-13  7:54 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-13  7:54 UTC (permalink / raw)
  To: celliott, gcc-bugs, gcc-prs, james, nobody

Synopsis: Internal compiler error when passing template class to new operator

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 07:54:49 2002
State-Changed-Why:
    confirmed, does not appear to be regression

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


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

end of thread, other threads:[~2002-11-15 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10  7:36 c++/7880: Internal compiler error when passing template class to new operator celliott
2002-09-13  7:54 nathan
2002-11-21  6:56 Volker Reichelt

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