public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13626] New: [3.4 regression] rejects valid
@ 2004-01-09 10:27 rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-09 10:28 ` [Bug c++/13626] " rguenth at tat dot physik dot uni-tuebingen dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2004-01-09 10:27 UTC (permalink / raw)
  To: gcc-bugs

The attached testcase fails to compile with recent CVS HEAD (g++-3.4 (GCC) 3.4.0
20040107 (experimental)). Works ok with g++ (GCC) 3.4 20031206 (experimental).

-- 
           Summary: [3.4 regression] rejects valid
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

* [Bug c++/13626] [3.4 regression] rejects valid
  2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
@ 2004-01-09 10:28 ` rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-09 17:12 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2004-01-09 10:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2004-01-09 10:28 -------
Created an attachment (id=5439)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5439&action=view)
Testcase


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

* [Bug c++/13626] [3.4 regression] rejects valid
  2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-09 10:28 ` [Bug c++/13626] " rguenth at tat dot physik dot uni-tuebingen dot de
@ 2004-01-09 17:12 ` pinskia at gcc dot gnu dot org
  2004-01-10 11:18 ` giovannibajo at libero dot it
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-09 17:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-09 17:12 -------
I think there is a duplicate some where but I have to use lynx so I cannot find it right now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

* [Bug c++/13626] [3.4 regression] rejects valid
  2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-09 10:28 ` [Bug c++/13626] " rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-09 17:12 ` pinskia at gcc dot gnu dot org
@ 2004-01-10 11:18 ` giovannibajo at libero dot it
  2004-01-10 12:56 ` rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-10 14:44 ` giovannibajo at libero dot it
  4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-10 11:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-10 11:18 -------
Richard, 

the code looks invalid to me. In the member initializer list of the copy 
construct you have:

face_m(model.face)

with:

  int face_m;
  int face() const { return face_m; }

So, it looks like that you actually wanted to say face_m(model.face()) or face_m
(model.face_m). GCC is right.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

* [Bug c++/13626] [3.4 regression] rejects valid
  2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
                   ` (2 preceding siblings ...)
  2004-01-10 11:18 ` giovannibajo at libero dot it
@ 2004-01-10 12:56 ` rguenth at tat dot physik dot uni-tuebingen dot de
  2004-01-10 14:44 ` giovannibajo at libero dot it
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2004-01-10 12:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2004-01-10 12:55 -------
Subject: Re:  [3.4 regression] rejects valid

On Sat, 10 Jan 2004, giovannibajo at libero dot it wrote:

>
> ------- Additional Comments From giovannibajo at libero dot it  2004-01-10 11:18 -------
> Richard,
>
> the code looks invalid to me. In the member initializer list of the copy
> construct you have:
>
> face_m(model.face)
>
> with:
>
>   int face_m;
>   int face() const { return face_m; }
>
> So, it looks like that you actually wanted to say face_m(model.face()) or face_m
> (model.face_m). GCC is right.

Doh, you are right.  Odd, previous gcc 3.4 accepted it, as still does
current gcc 3.3 and even Intel icpc in -ansi mode...

Can you change the bug to say accepts-invalid for 3.3 then?

Thanks,

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

* [Bug c++/13626] [3.4 regression] rejects valid
  2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
                   ` (3 preceding siblings ...)
  2004-01-10 12:56 ` rguenth at tat dot physik dot uni-tuebingen dot de
@ 2004-01-10 14:44 ` giovannibajo at libero dot it
  4 siblings, 0 replies; 6+ messages in thread
From: giovannibajo at libero dot it @ 2004-01-10 14:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-01-10 14:44 -------
Richard, there is no point in reopening the bug, because it is not a 
regression. GCC always accepted the invalid code and this bug was fixed in 
3.4.0. We keep around 3.3 bugs only if they are regressions from previous 
versions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovannibajo at libero dot
                   |                            |it


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13626


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

end of thread, other threads:[~2004-01-10 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-09 10:27 [Bug c++/13626] New: [3.4 regression] rejects valid rguenth at tat dot physik dot uni-tuebingen dot de
2004-01-09 10:28 ` [Bug c++/13626] " rguenth at tat dot physik dot uni-tuebingen dot de
2004-01-09 17:12 ` pinskia at gcc dot gnu dot org
2004-01-10 11:18 ` giovannibajo at libero dot it
2004-01-10 12:56 ` rguenth at tat dot physik dot uni-tuebingen dot de
2004-01-10 14:44 ` giovannibajo at libero dot it

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