public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54745] New: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?
@ 2012-09-29 10:26 dcb314 at hotmail dot com
  2012-09-29 10:29 ` [Bug c/54745] " dcb314 at hotmail dot com
  2012-09-29 10:35 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2012-09-29 10:26 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54745
           Summary: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


[dcb@zippy trunk]$ fgrep CASE_CONVERT gcc/c/*.c
gcc/c/c-typeck.c:    CASE_CONVERT:
gcc/c/c-typeck.c:        CASE_CONVERT:

The two pieces of code are

    case REALPART_EXPR:
    case IMAGPART_EXPR:
    CASE_CONVERT:
    case ADDR_EXPR:

and

        CASE_CONVERT:
        case NON_LVALUE_EXPR:
        case PLUS_EXPR:

It is odd to define a label and then not use it, even more
so in the middle of a switch statement. Is it likely
that the programmer intended keyword "case" on the front
of CASE_CONVERT, like

    case CASE_CONVERT:


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

* [Bug c/54745] gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?
  2012-09-29 10:26 [Bug c/54745] New: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ? dcb314 at hotmail dot com
@ 2012-09-29 10:29 ` dcb314 at hotmail dot com
  2012-09-29 10:35 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2012-09-29 10:29 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> 2012-09-29 10:29:35 UTC ---
More of the same over in trunk/gcc/c-family/c-pretty-print.c

[dcb@zippy src]$ fgrep CASE_CONVERT !$
fgrep CASE_CONVERT trunk/gcc/c-family/c-pretty-print.c
    CASE_CONVERT:
    CASE_CONVERT:
[dcb@zippy src]$


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

* [Bug c/54745] gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?
  2012-09-29 10:26 [Bug c/54745] New: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ? dcb314 at hotmail dot com
  2012-09-29 10:29 ` [Bug c/54745] " dcb314 at hotmail dot com
@ 2012-09-29 10:35 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-29 10:35 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-29 10:35:34 UTC ---
See tree.h


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

end of thread, other threads:[~2012-09-29 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 10:26 [Bug c/54745] New: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ? dcb314 at hotmail dot com
2012-09-29 10:29 ` [Bug c/54745] " dcb314 at hotmail dot com
2012-09-29 10:35 ` paolo.carlini at oracle dot com

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