public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9706: Internal error: segmentation fault
@ 2003-02-14 21:40 bangerth
  0 siblings, 0 replies; 6+ messages in thread
From: bangerth @ 2003-02-14 21:40 UTC (permalink / raw)
  To: gabriel, gcc-bugs, gcc-prs, nobody

Synopsis: Internal error: segmentation fault

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Feb 14 21:40:34 2003
State-Changed-Why:
    Confirmed. This is a reduced piece of code:
    -----------------------
    class B {
        struct XXX {};
        int XXX;
    };
    
    template <typename T> struct Y : B    {};
    template <typename T> struct Z : Y<T> {};
    ------------------------
    This ICEs gcc 2.95 through 3.3, and is accepted by 3.4.
    I think 3.4 is actually in error here, since you shouldn't
    be able to have variables and classes of the same name.
    There's another report already about this problem, but
    I don't know whether they are really equivalent.
    
    W.

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


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

* Re: c++/9706: Internal error: segmentation fault
@ 2003-02-18 16:16 Gabriel Huecas Fernandez-Toribio
  0 siblings, 0 replies; 6+ messages in thread
From: Gabriel Huecas Fernandez-Toribio @ 2003-02-18 16:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Gabriel Huecas Fernandez-Toribio <gabriel@dit.upm.es>
To: Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Cc: lerdsuwa@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
   <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Subject: Re: c++/9706: Internal error: segmentation fault
Date: Tue, 18 Feb 2003 17:12:23 +0100 (CET)

 ok, sorry, NOW I understand... maybe I did not get your
 last message. Good, waiting for 3.4 then :-) :-)
 
 Thank you very much for your response, =E7
 
 gabriel
 
 On Tue, 18 Feb 2003, Kriang Lerdsuwanakij wrote:
 
 > Thanks for the report.  I closed this bug report
 > because it has been fixed in the main cvs (future
 > GCC 3.4).  Fixing this bug for GCC 3.3 is very
 > unlikely since it's very close to the release date
 > now.
 >=20
 > --Kriang
 >=20
 >=20
 > Gabriel Huecas Fernandez-Toribio wrote:
 >=20
 > >It is not a bug, indeed. The code is not C++,
 > >but I expected a "syntax error" or "semantic error",
 > >but not a "internal error: segmentation fault".
 > >
 > >The compiler should not crash, in my opinion.
 > >
 > >Well, g++ asked to submit a report and I did.
 > >
 > >gabriel
 > >
 > >On 16 Feb 2003 lerdsuwa@gcc.gnu.org wrote:
 > >
 > > =20
 > >
 > >>Synopsis: Internal error: segmentation fault
 > >>
 > >>State-Changed-From-To: analyzed->closed
 > >>State-Changed-By: lerdsuwa
 > >>State-Changed-When: Sun Feb 16 18:04:26 2003
 > >>State-Changed-Why:
 > >>    Not a bug according to 3.3.7 p2.  The declaration 'int XXX;' hide=
 s 'class XXX'.  The class 'XXX' can be accessed using elaborated type spe=
 cifier.
 > >>
 > >>http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&datab=
 ase=3Dgcc&pr=3D9706
 > >>
 > >>   =20
 > >>
 > >
 > > =20
 > >
 >=20
 >=20
 >=20
 
 --=20
 _________________________________________________________________
 Gabriel Huecas                              <ghuecas@dit.upm.es>
 Associate Professor                  tel: +34 91 549 57 00 x. 375
 DIT (Dpto. Ing. Sistemas Telem=E1ticos)     +34 91 549 57 62 x. 375
 E.T.S.I. Telecomunicaci=F3n            fax: +34 91 336 73 33=20
 Universidad Polit=E9cnica de Madrid
 Ciudad Universitaria s/n
 E-28040 Madrid, Spain
 "A good plan today is better than a perfect plan tomorrow"
 _________________________________________________________________
 CHANGED: phone extension, Jan 3, 2003.
 


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

* Re: c++/9706: Internal error: segmentation fault
@ 2003-02-18 15:16 Kriang Lerdsuwanakij
  0 siblings, 0 replies; 6+ messages in thread
From: Kriang Lerdsuwanakij @ 2003-02-18 15:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
To: Gabriel Huecas Fernandez-Toribio <gabriel@dit.upm.es>
Cc: lerdsuwa@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
        nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: c++/9706: Internal error: segmentation fault
Date: Tue, 18 Feb 2003 22:14:31 +0700

 Thanks for the report.  I closed this bug report
 because it has been fixed in the main cvs (future
 GCC 3.4).  Fixing this bug for GCC 3.3 is very
 unlikely since it's very close to the release date
 now.
 
 --Kriang
 
 
 Gabriel Huecas Fernandez-Toribio wrote:
 
 >It is not a bug, indeed. The code is not C++,
 >but I expected a "syntax error" or "semantic error",
 >but not a "internal error: segmentation fault".
 >
 >The compiler should not crash, in my opinion.
 >
 >Well, g++ asked to submit a report and I did.
 >
 >gabriel
 >
 >On 16 Feb 2003 lerdsuwa@gcc.gnu.org wrote:
 >
 >  
 >
 >>Synopsis: Internal error: segmentation fault
 >>
 >>State-Changed-From-To: analyzed->closed
 >>State-Changed-By: lerdsuwa
 >>State-Changed-When: Sun Feb 16 18:04:26 2003
 >>State-Changed-Why:
 >>    Not a bug according to 3.3.7 p2.  The declaration 'int XXX;' hides 'class XXX'.  The class 'XXX' can be accessed using elaborated type specifier.
 >>
 >>http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9706
 >>
 >>    
 >>
 >
 >  
 >
 
 
 


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

* Re: c++/9706: Internal error: segmentation fault
@ 2003-02-17 15:06 Gabriel Huecas Fernandez-Toribio
  0 siblings, 0 replies; 6+ messages in thread
From: Gabriel Huecas Fernandez-Toribio @ 2003-02-17 15:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Gabriel Huecas Fernandez-Toribio <gabriel@dit.upm.es>
To: lerdsuwa@gcc.gnu.org, <gabriel@dit.upm.es>, <gcc-bugs@gcc.gnu.org>,
   <gcc-prs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: c++/9706: Internal error: segmentation fault
Date: Mon, 17 Feb 2003 13:56:17 +0100 (CET)

 It is not a bug, indeed. The code is not C++,
 but I expected a "syntax error" or "semantic error",
 but not a "internal error: segmentation fault".
 
 The compiler should not crash, in my opinion.
 
 Well, g++ asked to submit a report and I did.
 
 gabriel
 
 On 16 Feb 2003 lerdsuwa@gcc.gnu.org wrote:
 
 > Synopsis: Internal error: segmentation fault
 >=20
 > State-Changed-From-To: analyzed->closed
 > State-Changed-By: lerdsuwa
 > State-Changed-When: Sun Feb 16 18:04:26 2003
 > State-Changed-Why:
 >     Not a bug according to 3.3.7 p2.  The declaration 'int XXX;' hides =
 'class XXX'.  The class 'XXX' can be accessed using elaborated type speci=
 fier.
 >=20
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&databas=
 e=3Dgcc&pr=3D9706
 >=20
 
 --=20
 _________________________________________________________________
 Gabriel Huecas                              <ghuecas@dit.upm.es>
 Associate Professor                  tel: +34 91 549 57 00 x. 375
 DIT (Dpto. Ing. Sistemas Telem=E1ticos)     +34 91 549 57 62 x. 375
 E.T.S.I. Telecomunicaci=F3n            fax: +34 91 336 73 33=20
 Universidad Polit=E9cnica de Madrid
 Ciudad Universitaria s/n
 E-28040 Madrid, Spain
 "A good plan today is better than a perfect plan tomorrow"
 _________________________________________________________________
 CHANGED: phone extension, Jan 3, 2003.
 


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

* Re: c++/9706: Internal error: segmentation fault
@ 2003-02-16 18:04 lerdsuwa
  0 siblings, 0 replies; 6+ messages in thread
From: lerdsuwa @ 2003-02-16 18:04 UTC (permalink / raw)
  To: gabriel, gcc-bugs, gcc-prs, nobody

Synopsis: Internal error: segmentation fault

State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Feb 16 18:04:26 2003
State-Changed-Why:
    Not a bug according to 3.3.7 p2.  The declaration 'int XXX;' hides 'class XXX'.  The class 'XXX' can be accessed using elaborated type specifier.

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


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

* c++/9706: Internal error: segmentation fault
@ 2003-02-14 14:36 gabriel
  0 siblings, 0 replies; 6+ messages in thread
From: gabriel @ 2003-02-14 14:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9706
>Category:       c++
>Synopsis:       Internal error: segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 14 14:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Gabriel Huecas
>Release:        3.2
>Organization:
>Environment:
SuSE 8.1, PC arch P4
>Description:

Hello,
I have got an internal error, asking me to report the bug. The code is tricky, but should not crash compiler.

Thank you very much.

--- output of "g++ file.cc" -- THIS LINE NOT INCLUDED---

file.cc:23: internal error: Segmentation fault
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:

g++ file.cc 
>Fix:

change the name of the type or static variable in 
class "item_t"
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="file.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="file.ii"

IyAxICJmaWxlLmNjIgojIDEgIjxidWlsdC1pbj4iCiMgMSAiPGNvbW1hbmQgbGluZT4iCiMgMSAi
ZmlsZS5jYyIKCmNsYXNzIGl0ZW1fdAp7CiAgICBlbnVtIGRlYnVnTGV2ZWwgewogICAgICAgIGtf
cGFyYW5vaWM9NjY2CiAgICB9OwoKICAgIHN0YXRpYyBpbnQgZGVidWdMZXZlbDsKfTsKCgp0ZW1w
bGF0ZSA8Y2xhc3MgSywgY2xhc3MgVD4gY2xhc3MgZGljdGlvbmFyeV90CjogcHVibGljIHZpcnR1
YWwgaXRlbV90CnsKfTsKCmNsYXNzIGljZlN0cmluZ190CnsKfTsKCnRlbXBsYXRlIDxjbGFzcyBU
PiBjbGFzcyBzdHJpbmdrZXlEaWN0aW9uYXJ5X3Q6CiAgICBwdWJsaWMgZGljdGlvbmFyeV90PGlj
ZlN0cmluZ190LCBUPgp7Cn07Cg==


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

end of thread, other threads:[~2003-02-18 16:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 21:40 c++/9706: Internal error: segmentation fault bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-18 16:16 Gabriel Huecas Fernandez-Toribio
2003-02-18 15:16 Kriang Lerdsuwanakij
2003-02-17 15:06 Gabriel Huecas Fernandez-Toribio
2003-02-16 18:04 lerdsuwa
2003-02-14 14:36 gabriel

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