public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11377] New: fault or warn modifiable static in extern inline definition
@ 2003-06-30 10:25 algrant at myrealbox dot com
  2003-07-18 22:52 ` [Bug c/11377] " dhazeghi at yahoo dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: algrant at myrealbox dot com @ 2003-06-30 10:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: fault or warn modifiable static in extern inline
                    definition
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: algrant at myrealbox dot com
                CC: gcc-bugs at gcc dot gnu dot org

C prohibits this (6.7.4#3):
  extern inline int f(void) { static int n; return ++n; }
Even with 'gnu89' extern-inline semantics, gcc does not treat this
predictably, as a given call site may use one of two possible
instances of 'n', so a warning to that effect would be useful.


^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <bug-11377-1536@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-11-30 19:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-30 10:25 [Bug c/11377] New: fault or warn modifiable static in extern inline definition algrant at myrealbox dot com
2003-07-18 22:52 ` [Bug c/11377] " dhazeghi at yahoo dot com
2003-08-23  0:36 ` dhazeghi at yahoo dot com
2003-11-27 16:46 ` pinskia at gcc dot gnu dot org
2004-08-07  0:18 ` hozelda at yahoo dot com
2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org
     [not found] <bug-11377-1536@http.gcc.gnu.org/bugzilla/>
2006-05-04 21:49 ` geoffk at gcc dot gnu dot org
2006-10-16 21:53 ` geoffk at gcc dot gnu dot org
2006-11-01  4:47 ` geoffk at gcc dot gnu dot org
2006-11-01  4:48 ` geoffk at gcc dot gnu dot org
2006-11-01  5:40 ` geoffk at gcc dot gnu dot org
2006-11-30 19:26 ` chaoyingfu 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).