public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2002-03-13  9:06 Scott MacDonald
  0 siblings, 0 replies; 6+ messages in thread
From: Scott MacDonald @ 2002-03-13  9:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: "Scott MacDonald" <scott@iotek.ns.ca>
To: <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
Date: Wed, 13 Mar 2002 13:01:20 -0400

 This is an update to PR4990
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=4990
 
 See also PR4377 (this was an update to that report but I didn't know how to
 add to a problem report).
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=4377
 
 


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

* Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2002-05-17 12:17 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2002-05-17 12:17 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, scott_k_macdonald

Synopsis: ice when using multiple non-class template parameters (works on 2.95.3)

State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Fri May 17 12:17:44 2002
State-Changed-Why:
    Compiles with gcc 3.1

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


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

* Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2002-02-15 13:06 Scott MacDonald
  0 siblings, 0 replies; 6+ messages in thread
From: Scott MacDonald @ 2002-02-15 13:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: "Scott MacDonald" <scott@iotek.ns.ca>
To: <gcc-gnats@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>,
        <nobody@gcc.gnu.org>, <scott_k_macdonald@yahoo.com>
Cc:  
Subject: Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
Date: Fri, 15 Feb 2002 16:58:10 -0400

 I have also tried this test with g++ 3.0.3 and g++ (GCC) 3.1 20020215
 (experimental) (head of CVS tree on Feb 15).  Both of these versions end
 with:
 
 	> test1.cc: In function `int main()':
 	> test1.cc:28: Internal error: Segmentation fault
 
 The previous update had the comment "Fixed in main trunk (gcc version 3.1
 20011201 (experimental))", but as of Feb 2002 both the 3.0 branch and the
 3.1 head have the same problem.  Maybe I misunderstood the comment.
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view audit-trail
 


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

* Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2001-12-04 16:36 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-12-04 16:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: rodrigc@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  nobody@gcc.gnu.org, scott_k_macdonald@yahoo.com
Cc:  
Subject: Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
Date: 5 Dec 2001 00:29:16 -0000

 Synopsis: ice when using multiple non-class template parameters (works on 2.95.3)
 
 State-Changed-From-To: open->analyzed
 State-Changed-By: rodrigc
 State-Changed-When: Tue Dec  4 16:29:16 2001
 State-Changed-Why:
     Fixed in main trunk (gcc version 3.1 20011201 (experimental)).
     
     ICE in gcc 3.0.3 20011201.   The compiler SIGSEGV's here:
     Program received signal SIGSEGV, Segmentation fault.
     0x400a5f27 in strlen (str=0x0) at ../sysdeps/i386/strlen.c:28
     28      ../sysdeps/i386/strlen.c: No such file or directory.
             in ../sysdeps/i386/strlen.c
     (gdb) where
     #0  0x400a5f27 in strlen (str=0x0) at ../sysdeps/i386/strlen.c:28
     #1  0x0812b19d in write_expression (expr=0x401b399c)
         at cp/mangle.c:1818
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4990&database=gcc


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

* Re: c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2001-12-04 16:29 rodrigc
  0 siblings, 0 replies; 6+ messages in thread
From: rodrigc @ 2001-12-04 16:29 UTC (permalink / raw)
  To: gcc-bugs, gcc-gnats, gcc-prs, nobody, scott_k_macdonald

Synopsis: ice when using multiple non-class template parameters (works on 2.95.3)

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Tue Dec  4 16:29:16 2001
State-Changed-Why:
    Fixed in main trunk (gcc version 3.1 20011201 (experimental)).
    
    ICE in gcc 3.0.3 20011201.   The compiler SIGSEGV's here:
    Program received signal SIGSEGV, Segmentation fault.
    0x400a5f27 in strlen (str=0x0) at ../sysdeps/i386/strlen.c:28
    28      ../sysdeps/i386/strlen.c: No such file or directory.
            in ../sysdeps/i386/strlen.c
    (gdb) where
    #0  0x400a5f27 in strlen (str=0x0) at ../sysdeps/i386/strlen.c:28
    #1  0x0812b19d in write_expression (expr=0x401b399c)
        at cp/mangle.c:1818

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


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

* c++/4990: ice when using multiple non-class template parameters (works on 2.95.3)
@ 2001-12-03  9:16 scott_k_macdonald
  0 siblings, 0 replies; 6+ messages in thread
From: scott_k_macdonald @ 2001-12-03  9:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4990
>Category:       c++
>Synopsis:       ice when using multiple non-class template parameters (works on 2.95.3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 03 09:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Scott MacDonald
>Release:        gcc-3.0.2
>Organization:
>Environment:
Red Hat Linux 7.1, Intel
>Description:
This problem is an extension of bug #3911. The code posted in that report compiles fine, but the addition of another operator causes an Internal error: Segmentation fault .

The code works fine using gcc 2.95.3 and using Comeau Computing's online compiler (4.2.45.2).

This was the result of a compile of test-1.cc (code below).
> g++ test-1.cc
test1.cc: In function `int main()':
test1.cc:28: 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.

As a side note I also posted this a while back but the version was a snapshot and not a full release.  That posting (#4377) seems to have been lost in the noise.  I reposted because I don't have access to modify a report and the end results are slightly different.

===================================================
code for test1.cc

template < int I1, int I2 >
class unit
{
public:
 unit() {}
 unit( const unit<I1,I2>& ) {}

 template< int Q1, int Q2 >
 unit< I1 + Q1, I2 + Q2 > operator * ( const unit< Q1, Q2 >& rhs ) const {
 return unit< I1 + Q1, I2 + Q2 >();
 }
 
 template< int Q1, int Q2 >
 unit< I1 - Q1, I2 - Q2 > operator / ( const unit< Q1, Q2 >& rhs ) const {
 return unit< I1 - Q1, I2 - Q2 >();
 }
 
};
 
int main()
{
 const unit<1,0> u1;
 const unit<2,0> u2;
 
 unit<-1,0> u3( u1 / u2 );
 unit< 3,0> u4( u1 * u2 );
}

>How-To-Repeat:
g++ test1.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test1.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test1.cc"

Cgp0ZW1wbGF0ZSA8IGludCBJMSwgaW50IEkyID4KY2xhc3MgdW5pdAp7CnB1YmxpYzoKIHVuaXQo
KSB7fQogdW5pdCggY29uc3QgdW5pdDxJMSxJMj4mICkge30KCiB0ZW1wbGF0ZTwgaW50IFExLCBp
bnQgUTIgPgogdW5pdDwgSTEgKyBRMSwgSTIgKyBRMiA+IG9wZXJhdG9yICogKCBjb25zdCB1bml0
PCBRMSwgUTIgPiYgcmhzICkgY29uc3QgewogcmV0dXJuIHVuaXQ8IEkxICsgUTEsIEkyICsgUTIg
PigpOwogfQogCiB0ZW1wbGF0ZTwgaW50IFExLCBpbnQgUTIgPgogdW5pdDwgSTEgLSBRMSwgSTIg
LSBRMiA+IG9wZXJhdG9yIC8gKCBjb25zdCB1bml0PCBRMSwgUTIgPiYgcmhzICkgY29uc3Qgewog
cmV0dXJuIHVuaXQ8IEkxIC0gUTEsIEkyIC0gUTIgPigpOwogfQogCn07CiAKaW50IG1haW4oKQp7
CiBjb25zdCB1bml0PDEsMD4gdTE7CiBjb25zdCB1bml0PDIsMD4gdTI7CiAKIHVuaXQ8LTEsMD4g
dTMoIHUxIC8gdTIgKTsKIHVuaXQ8IDMsMD4gdTQoIHUxICogdTIgKTsKfQoK


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

end of thread, other threads:[~2002-05-17 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13  9:06 c++/4990: ice when using multiple non-class template parameters (works on 2.95.3) Scott MacDonald
  -- strict thread matches above, loose matches on Subject: below --
2002-05-17 12:17 rodrigc
2002-02-15 13:06 Scott MacDonald
2001-12-04 16:36 rodrigc
2001-12-04 16:29 rodrigc
2001-12-03  9:16 scott_k_macdonald

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