public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21343] New: [4.0/4.1 Regression] incompatible internal linkage declarations in different scopes not diagnosed
@ 2005-05-02 20:00 jsm28 at gcc dot gnu dot org
  2005-05-02 20:02 ` [Bug c/21343] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-05-02 20:00 UTC (permalink / raw)
  To: gcc-bugs

My fix to bug 13801 caused the compiler no longer to diagnose incompatible
refinements in nested scopes of the types of objects or functions with internal
linkage.  (Fixing this involves adding a special "internal scope", like the
"external scope", which stores the full composite type information for entities
with internal linkage.)  See also bug 21342.

Test 1:

static int (*a)[];
void f(void) { extern int (*a)[2]; }
void g(void) { extern int (*a)[3]; }

Test 2 (where the prototype information from the inner scope should be checked
against the old-style definition):

static int f(int (*)[]);
int g() { extern int f(int (*)[2]); }
static int f(a) int (*a)[3]; { return 0; }

Test 3:

static int (*a)[];
void f(void) { extern int (*a)[]; extern int (*a)[2]; }
extern int (*a)[3];

-- 
           Summary: [4.0/4.1 Regression] incompatible internal linkage
                    declarations in different scopes not diagnosed
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-22 18:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21343-230@http.gcc.gnu.org/bugzilla/>
2005-10-29 20:45 ` [Bug c/21343] [4.0/4.1 Regression] incompatible internal linkage declarations in different scopes not diagnosed pinskia at gcc dot gnu dot org
2005-10-29 20:48 ` joseph at codesourcery dot com
2005-10-31  3:14 ` mmitchel at gcc dot gnu dot org
2006-03-11  3:21 ` [Bug c/21343] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2007-01-18  4:08 ` [Bug c/21343] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-01-21 21:58 ` pinskia at gcc dot gnu dot org
2007-02-14  9:33 ` mmitchel at gcc dot gnu dot org
2008-07-04 16:53 ` [Bug c/21343] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-31 18:45 ` [Bug c/21343] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:29 ` rguenth at gcc dot gnu dot org
2010-05-22 18:14 ` [Bug c/21343] [4.3/4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2005-05-02 20:00 [Bug c/21343] New: [4.0/4.1 " jsm28 at gcc dot gnu dot org
2005-05-02 20:02 ` [Bug c/21343] " pinskia at gcc dot gnu dot org
2005-07-08  1:35 ` mmitchel at gcc dot gnu dot org
2005-09-27 16:18 ` mmitchel 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).