public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26291]  New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
@ 2006-02-14 21:16 reichelt at gcc dot gnu dot org
  2006-02-14 22:23 ` [Bug c++/26291] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-14 21:16 UTC (permalink / raw)
  To: gcc-bugs

As some operator functions take a fixed (or at least limited) number
of arguments, an ellipsis is not allowed as argument for such operator
functions.
However, none of the following four cases is diagnosed since GCC 3.0:

===================================
struct A
{
    A& operator= (int, ...);
    A& operator[] (int, ...);
    A& operator++ (...);
    operator int(...);
};
===================================

All cases were diagnosed correctly in GCC 2.95.3 (although the compiler
would crash later). Therefore I'm rating this as a regression.


-- 
           Summary: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in
                    operator not diagnosed
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/26291] [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
@ 2006-02-14 22:23 ` reichelt at gcc dot gnu dot org
  2006-02-18 16:13 ` reichelt at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-14 22:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-02-14 22:23 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-14 22:23:19
               date|                            |


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


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

* [Bug c++/26291] [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
  2006-02-14 22:23 ` [Bug c++/26291] " reichelt at gcc dot gnu dot org
@ 2006-02-18 16:13 ` reichelt at gcc dot gnu dot org
  2006-02-19 20:08 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-18 16:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.3


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


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

* [Bug c++/26291] [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
  2006-02-14 22:23 ` [Bug c++/26291] " reichelt at gcc dot gnu dot org
  2006-02-18 16:13 ` reichelt at gcc dot gnu dot org
@ 2006-02-19 20:08 ` mmitchel at gcc dot gnu dot org
  2006-02-22 17:22 ` reichelt at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-19 20:08 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/26291] [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-19 20:08 ` mmitchel at gcc dot gnu dot org
@ 2006-02-22 17:22 ` reichelt at gcc dot gnu dot org
  2006-02-22 17:35 ` [Bug c++/26291] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-22 17:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-02-22 17:22 -------
Subject: Bug 26291

Author: reichelt
Date: Wed Feb 22 17:22:08 2006
New Revision: 111367

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111367
Log:
        PR c++/26291
        * decl.c (grok_op_properties): Check for ellipsis in arguments of
        operators.

        * g++.dg/other/ellipsis1.C: New test.
        * g++.dg/parse/operator4.C: Adjust error marker.

Added:
    trunk/gcc/testsuite/g++.dg/other/ellipsis1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/operator4.C


-- 


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


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

* [Bug c++/26291] [3.4/4.0/4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-22 17:22 ` reichelt at gcc dot gnu dot org
@ 2006-02-22 17:35 ` reichelt at gcc dot gnu dot org
  2006-02-23  2:39 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-22 17:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-02-22 17:35 -------
Fixed on mainline.
Waiting for the 4.1 branch to reopen.
Testing on the 4.0 and 3.4 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.0/4.1/4.2 regression]|[3.4/4.0/4.1 regression]
                   |Invalid ellipsis in operator|Invalid ellipsis in operator
                   |not diagnosed               |not diagnosed


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


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

* [Bug c++/26291] [3.4/4.0/4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-22 17:35 ` [Bug c++/26291] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org
@ 2006-02-23  2:39 ` reichelt at gcc dot gnu dot org
  2006-02-23  2:52 ` [Bug c++/26291] [3.4/4.1 " reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-23  2:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-02-23 02:39 -------
Subject: Bug 26291

Author: reichelt
Date: Thu Feb 23 02:39:24 2006
New Revision: 111380

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111380
Log:
        PR c++/26291
        * decl.c (grok_op_properties): Check for ellipsis in arguments of
        operators.

        * g++.dg/other/ellipsis1.C: New test.
        * g++.dg/parse/operator4.C: Adjust error marker.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/ellipsis1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/decl.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/operator4.C


-- 


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


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

* [Bug c++/26291] [3.4/4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-23  2:39 ` reichelt at gcc dot gnu dot org
@ 2006-02-23  2:52 ` reichelt at gcc dot gnu dot org
  2006-02-23 11:07 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-23  2:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-02-23 02:52 -------
Now also fixed on the 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.0/4.1 regression]    |[3.4/4.1 regression] Invalid
                   |Invalid ellipsis in operator|ellipsis in operator not
                   |not diagnosed               |diagnosed
   Target Milestone|4.0.3                       |4.1.0


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


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

* [Bug c++/26291] [3.4/4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-02-23  2:52 ` [Bug c++/26291] [3.4/4.1 " reichelt at gcc dot gnu dot org
@ 2006-02-23 11:07 ` reichelt at gcc dot gnu dot org
  2006-02-23 11:08 ` [Bug c++/26291] [4.1 " reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-23 11:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-02-23 11:06 -------
Subject: Bug 26291

Author: reichelt
Date: Thu Feb 23 11:06:55 2006
New Revision: 111385

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111385
Log:
        PR c++/26291
        * decl.c (grok_op_properties): Check for ellipsis in arguments of
        operators.

        * g++.dg/other/ellipsis1.C: New test.
        * g++.dg/parse/operator4.C: Adjust error marker.

Added:
    branches/gcc-3_4-branch/gcc/testsuite/g++.dg/other/ellipsis1.C
Modified:
    branches/gcc-3_4-branch/gcc/cp/ChangeLog
    branches/gcc-3_4-branch/gcc/cp/decl.c
    branches/gcc-3_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-3_4-branch/gcc/testsuite/g++.dg/parse/operator4.C


-- 


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


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

* [Bug c++/26291] [4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-02-23 11:07 ` reichelt at gcc dot gnu dot org
@ 2006-02-23 11:08 ` reichelt at gcc dot gnu dot org
  2006-03-02 12:21 ` reichelt at gcc dot gnu dot org
  2006-03-02 12:22 ` [Bug c++/26291] [3.4/4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-23 11:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from reichelt at gcc dot gnu dot org  2006-02-23 11:08 -------
Now also fixed on the 3.4 branch.
Waiting for the 4.1 branch to reopen.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.1 regression] Invalid|[4.1 regression] Invalid
                   |ellipsis in operator not    |ellipsis in operator not
                   |diagnosed                   |diagnosed
   Target Milestone|4.1.0                       |4.1.1


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


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

* [Bug c++/26291] [4.1 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-02-23 11:08 ` [Bug c++/26291] [4.1 " reichelt at gcc dot gnu dot org
@ 2006-03-02 12:21 ` reichelt at gcc dot gnu dot org
  2006-03-02 12:22 ` [Bug c++/26291] [3.4/4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-02 12:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2006-03-02 12:20 -------
Subject: Bug 26291

Author: reichelt
Date: Thu Mar  2 12:20:52 2006
New Revision: 111637

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111637
Log:
        PR c++/26291
        * decl.c (grok_op_properties): Check for ellipsis in arguments of
        operators.

        * g++.dg/other/ellipsis1.C: New test.
        * g++.dg/parse/operator4.C: Adjust error marker.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/ellipsis1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/decl.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/operator4.C


-- 


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


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

* [Bug c++/26291] [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed
  2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2006-03-02 12:21 ` reichelt at gcc dot gnu dot org
@ 2006-03-02 12:22 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-02 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from reichelt at gcc dot gnu dot org  2006-03-02 12:22 -------
Now also fixed on the 4.1 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|[4.1 regression] Invalid    |[3.4/4.0/4.1/4.2 regression]
                   |ellipsis in operator not    |Invalid ellipsis in operator
                   |diagnosed                   |not diagnosed
   Target Milestone|4.1.1                       |3.4.6


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


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

end of thread, other threads:[~2006-03-02 12:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 21:16 [Bug c++/26291] New: [3.4/4.0/4.1/4.2 regression] Invalid ellipsis in operator not diagnosed reichelt at gcc dot gnu dot org
2006-02-14 22:23 ` [Bug c++/26291] " reichelt at gcc dot gnu dot org
2006-02-18 16:13 ` reichelt at gcc dot gnu dot org
2006-02-19 20:08 ` mmitchel at gcc dot gnu dot org
2006-02-22 17:22 ` reichelt at gcc dot gnu dot org
2006-02-22 17:35 ` [Bug c++/26291] [3.4/4.0/4.1 " reichelt at gcc dot gnu dot org
2006-02-23  2:39 ` reichelt at gcc dot gnu dot org
2006-02-23  2:52 ` [Bug c++/26291] [3.4/4.1 " reichelt at gcc dot gnu dot org
2006-02-23 11:07 ` reichelt at gcc dot gnu dot org
2006-02-23 11:08 ` [Bug c++/26291] [4.1 " reichelt at gcc dot gnu dot org
2006-03-02 12:21 ` reichelt at gcc dot gnu dot org
2006-03-02 12:22 ` [Bug c++/26291] [3.4/4.0/4.1/4.2 " reichelt at gcc dot gnu dot org

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