public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6596: Regression on C++ code.
@ 2002-05-07 10:36 Theodore.Papadopoulo
  0 siblings, 0 replies; 3+ messages in thread
From: Theodore.Papadopoulo @ 2002-05-07 10:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6596
>Category:       c++
>Synopsis:       Regression on C++ code.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 07 10:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Theodore.Papadopoulo@sophia.inria.fr
>Release:        gcc version 3.2 20020424 (experimental)
>Organization:
>Environment:
Gnu/Linux 2.2.18
Gnu libc-2.1.3.so
>Description:
The program below does not compile with gcc version 3.2 20020424

vanuatu->g++ toto.C
toto.C: In copy constructor `A::H::H(const A::H&)':
toto.C:13: `const' qualifiers cannot be applied to `A&'

Remove the line with virtual and everything suddenly becomes fine. Something there is inconsistent. It worked with the 3.0 series and with 3.1 20011022 (experimental). In my opinion, the program should be valid, confirmed by my reading of the C++ standard (12.8.5).

I do not have access to a current 3.1 version.
>How-To-Repeat:
Just compile the code in attachment.
>Fix:
Remove the pure virtual declaration.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="toto.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="toto.C"

c3RydWN0IEEgewogICAgc3RydWN0IEggewogICAgICAgIEEmIGE7CiAgICAgICAgSChBJiBiKTog
YShiKSB7IH0KICAgICAgICB2aXJ0dWFsIG9wZXJhdG9yIGludCgpIGNvbnN0ID0gMDsKICAgIH07
CgogICAgc3RydWN0IFI6IHB1YmxpYyBIIHsKICAgICAgICBSKEEmIGEpOkgoYSkgeyB9CiAgICAg
ICAgb3BlcmF0b3IgaW50KCkgY29uc3QgeyByZXR1cm4gMTsgfQogICAgfTsKCiAgICBSIHIoKSB7
IHJldHVybiBSKCp0aGlzKTsgfQp9OwoKaW50Cm1haW4oKQp7CiAgICBBIGE7CiAgICBpbnQgaSA9
IGEucigpOwp9Cg==


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

* Re: c++/6596: Regression on C++ code.
@ 2002-05-13  6:16 Theodore Papadopoulo
  0 siblings, 0 replies; 3+ messages in thread
From: Theodore Papadopoulo @ 2002-05-13  6:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
To: paolo@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/6596: Regression on C++ code. 
Date: Mon, 13 May 2002 15:09:56 +0200

 > Synopsis: Regression on C++ code.
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: paolo
 > State-Changed-When: Tue May  7 10:58:26 2002
 > State-Changed-Why:
 >     Duplicate of c++/6486, already fixed both in trunk and 3_1-branch.
 >     Thanks for your report.
 
 Thank's a lot and sorry for the duplication...
 
 
 --------------------------------------------------------------------
 Theodore Papadopoulo
 Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
  --------------------------------------------------------------------
 
 


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

* Re: c++/6596: Regression on C++ code.
@ 2002-05-07 10:58 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-05-07 10:58 UTC (permalink / raw)
  To: Theodore.Papadopoulo, gcc-bugs, gcc-prs, nobody

Synopsis: Regression on C++ code.

State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Tue May  7 10:58:26 2002
State-Changed-Why:
    Duplicate of c++/6486, already fixed both in trunk and 3_1-branch.
    Thanks for your report.

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


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 10:36 c++/6596: Regression on C++ code Theodore.Papadopoulo
2002-05-07 10:58 paolo
2002-05-13  6:16 Theodore Papadopoulo

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