public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26068]  New: extern "C" static function should not be allowed
@ 2006-02-02  0:19 pr2345 at gmail dot com
  2006-02-02  0:23 ` [Bug c++/26068] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: pr2345 at gmail dot com @ 2006-02-02  0:19 UTC (permalink / raw)
  To: gcc-bugs

Acccording to C++ standard 7.5/7 "A linkage-specification directly containing a
single declaration shall not specify a storage class."  They also give the
following example as invalid:

extern "C" static void foo();

But g++ version 4.0.2 accepts this.


-- 
           Summary: extern "C" static function should not be allowed
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pr2345 at gmail dot com


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


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

* [Bug c++/26068] [3.4/4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
@ 2006-02-02  0:23 ` pinskia at gcc dot gnu dot org
  2006-02-14  8:58 ` mmitchel at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-02  0:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-02 00:23 -------
Confirmed, a regression from 3.0.4:
t.cc:1: multiple storage classes in declaration of `foo'


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |3.2.3 3.3.3 3.4.0 4.0.0
                   |                            |4.1.0 4.2.0
      Known to work|                            |3.0.4 2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-02 00:23:56
               date|                            |
            Summary|extern "C" static function  |[3.4/4.0/4.1 Regression]
                   |should not be allowed       |extern "C" static function
                   |                            |should not be allowed
   Target Milestone|---                         |4.0.3


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


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

* [Bug c++/26068] [3.4/4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
  2006-02-02  0:23 ` [Bug c++/26068] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2006-02-14  8:58 ` mmitchel at gcc dot gnu dot org
  2006-02-24  0:49 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-14  8:58 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=26068


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

* [Bug c++/26068] [3.4/4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
  2006-02-02  0:23 ` [Bug c++/26068] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2006-02-14  8:58 ` mmitchel at gcc dot gnu dot org
@ 2006-02-24  0:49 ` mmitchel at gcc dot gnu dot org
  2006-05-17 15:47 ` [Bug c++/26068] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24  0:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-02-24 00:26 -------
This issue will not be resolved in GCC 4.1.0; retargeted at GCC 4.1.1.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/26068] [4.0/4.1/4.2 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (2 preceding siblings ...)
  2006-02-24  0:49 ` mmitchel at gcc dot gnu dot org
@ 2006-05-17 15:47 ` mmitchel at gcc dot gnu dot org
  2006-05-17 17:24 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-17 15:47 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/26068] [4.0/4.1/4.2 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (3 preceding siblings ...)
  2006-05-17 15:47 ` [Bug c++/26068] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-05-17 17:24 ` mmitchel at gcc dot gnu dot org
  2006-05-17 17:27 ` [Bug c++/26068] [4.0/4.1 " mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-17 17:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2006-05-17 17:24 -------
Subject: Bug 26068

Author: mmitchel
Date: Wed May 17 17:24:00 2006
New Revision: 113869

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113869
Log:
        PR c++/26068
        * parser.c (cp_parser_set_storage_class): Check for 
        invalid uses of storage classes on unbraced linkage
        specifications.
        (cp_parser_decl_specifier_seq): Pass keywords, not storage classes,
        to cp_parser_set_storage_class.
        PR c++/26068
        * g++.dg/opt/pr17697-3.C: Remove invalid extern specifier.
        * g++.dg/parse/linkage1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/linkage1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/opt/pr17697-3.C


-- 


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


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

* [Bug c++/26068] [4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (4 preceding siblings ...)
  2006-05-17 17:24 ` mmitchel at gcc dot gnu dot org
@ 2006-05-17 17:27 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:37 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-17 17:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2006-05-17 17:27 -------
Fixed in 4.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2 Regression]    |[4.0/4.1 Regression] extern
                   |extern "C" static function  |"C" static function should
                   |should not be allowed       |not be allowed


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


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

* [Bug c++/26068] [4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (5 preceding siblings ...)
  2006-05-17 17:27 ` [Bug c++/26068] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:37 ` mmitchel at gcc dot gnu dot org
  2006-05-31  2:56 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mmitchel at gcc dot gnu dot org  2006-05-25 02:33 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug c++/26068] [4.0/4.1 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (6 preceding siblings ...)
  2006-05-25  2:37 ` mmitchel at gcc dot gnu dot org
@ 2006-05-31  2:56 ` mmitchel at gcc dot gnu dot org
  2006-05-31  2:56 ` [Bug c++/26068] [4.0 " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-31  2:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mmitchel at gcc dot gnu dot org  2006-05-31 02:56 -------
Subject: Bug 26068

Author: mmitchel
Date: Wed May 31 02:55:52 2006
New Revision: 114261

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114261
Log:
        PR c++/26068
        * parser.c (cp_parser_set_storage_class): Check for 
        invalid uses of storage classes on unbraced linkage
        specifications.
        (cp_parser_decl_specifier_seq): Pass keywords, not storage classes,
        to cp_parser_set_storage_class.
        PR c++/26068
        * g++.dg/opt/pr17697-3.C: Remove invalid extern specifier.
        * g++.dg/parse/linkage1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/linkage1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/pr17697-3.C


-- 


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


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

* [Bug c++/26068] [4.0 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (7 preceding siblings ...)
  2006-05-31  2:56 ` mmitchel at gcc dot gnu dot org
@ 2006-05-31  2:56 ` mmitchel at gcc dot gnu dot org
  2007-02-03 21:05 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-31  2:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mmitchel at gcc dot gnu dot org  2006-05-31 02:56 -------
Fixed in 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|[4.0/4.1 Regression] extern |[4.0 Regression] extern "C"
                   |"C" static function should  |static function should not
                   |not be allowed              |be allowed


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


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

* [Bug c++/26068] [4.0 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (8 preceding siblings ...)
  2006-05-31  2:56 ` [Bug c++/26068] [4.0 " mmitchel at gcc dot gnu dot org
@ 2007-02-03 21:05 ` reichelt at gcc dot gnu dot org
  2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
  2010-06-29 18:23 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-03 21:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from reichelt at gcc dot gnu dot org  2007-02-03 21:05 -------
Won't be fixed o the 4.0 branch.
Fixed in GCC 4.1.2.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/26068] [4.0 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (9 preceding siblings ...)
  2007-02-03 21:05 ` reichelt at gcc dot gnu dot org
@ 2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
  2010-06-29 18:23 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-08-15 16:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2007-08-15 16:40 -------
*** Bug 33078 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |room_debugs at outgesourced
                   |                            |dot org


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


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

* [Bug c++/26068] [4.0 Regression] extern "C" static function should not be allowed
  2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
                   ` (10 preceding siblings ...)
  2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
@ 2010-06-29 18:23 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-06-29 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pinskia at gcc dot gnu dot org  2010-06-29 18:23 -------
*** Bug 44717 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bero at arklinux dot org


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


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

end of thread, other threads:[~2010-06-29 18:23 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-02  0:19 [Bug c++/26068] New: extern "C" static function should not be allowed pr2345 at gmail dot com
2006-02-02  0:23 ` [Bug c++/26068] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2006-02-14  8:58 ` mmitchel at gcc dot gnu dot org
2006-02-24  0:49 ` mmitchel at gcc dot gnu dot org
2006-05-17 15:47 ` [Bug c++/26068] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-17 17:24 ` mmitchel at gcc dot gnu dot org
2006-05-17 17:27 ` [Bug c++/26068] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-05-25  2:37 ` mmitchel at gcc dot gnu dot org
2006-05-31  2:56 ` mmitchel at gcc dot gnu dot org
2006-05-31  2:56 ` [Bug c++/26068] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 21:05 ` reichelt at gcc dot gnu dot org
2007-08-15 16:40 ` pinskia at gcc dot gnu dot org
2010-06-29 18:23 ` pinskia 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).