public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4319: short accepted on typedef'd char
@ 2002-08-21 10:06 jsm28
  0 siblings, 0 replies; 3+ messages in thread
From: jsm28 @ 2002-08-21 10:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jfoster, jsm28

Synopsis: short accepted on typedef'd char

State-Changed-From-To: analyzed->closed
State-Changed-By: jsm28
State-Changed-When: Wed Aug 21 09:42:52 2002
State-Changed-Why:
    Fixed for 3.3.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4319


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

* Re: c/4319: short accepted on typedef'd char
@ 2001-09-13 14:01 jsm28
  0 siblings, 0 replies; 3+ messages in thread
From: jsm28 @ 2001-09-13 14:01 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jfoster, jsm28, nobody

Synopsis: short accepted on typedef'd char

Responsible-Changed-From-To: unassigned->jsm28
Responsible-Changed-By: jsm28
Responsible-Changed-When: Thu Sep 13 14:01:57 2001
Responsible-Changed-Why:
    Claiming responsibility for this bug.  The fix is trivial,
    but doing it properly does involve writing a collection
    of testcases for all the valid and invalid uses of type
    specifiers.
State-Changed-From-To: open->analyzed
State-Changed-By: jsm28
State-Changed-When: Thu Sep 13 14:01:57 2001
State-Changed-Why:
    Confirmed as a bug in current 3.1 CVS.  This case will
    give a warning with -pedantic; there are a lot of cases
    where warnings conditional on -pedantic ought to be
    unconditional warnings or errors, and since this is a case
    of nonsense code it ought to be an unconditional error.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4319&database=gcc


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

* c/4319: short accepted on typedef'd char
@ 2001-09-13 13:26 jfoster
  0 siblings, 0 replies; 3+ messages in thread
From: jfoster @ 2001-09-13 13:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4319
>Category:       c
>Synopsis:       short accepted on typedef'd char
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 13 13:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Foster
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
>Organization:
>Environment:
redhat 7.1, x86
>Description:
gcc allows ``short'' to appear with a typedef'd char:

typedef unsigned char __u8;
__u8 short slot_tablelen;

is accepted, but

unsigned char short slot_tablelen;

is not, which doesn't make sense to me.  (In C99, short is
not allowed with any typedef'd name -- I'm not sure why it's
allowed in gcc.)
>How-To-Repeat:
gcc bad.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bad.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bad.c"

dHlwZWRlZiB1bnNpZ25lZCBjaGFyIF9fdTg7Cl9fdTggc2hvcnQgc2xvdF90YWJsZWxlbjsK


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

end of thread, other threads:[~2002-08-21 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21 10:06 c/4319: short accepted on typedef'd char jsm28
  -- strict thread matches above, loose matches on Subject: below --
2001-09-13 14:01 jsm28
2001-09-13 13:26 jfoster

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