public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53060] New: Typo in build_binary_op for scalar-vector ops
@ 2012-04-21 12:09 marc.glisse at normalesup dot org
  2012-04-21 13:44 ` [Bug c/53060] " manu at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marc.glisse at normalesup dot org @ 2012-04-21 12:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53060
           Summary: Typo in build_binary_op for scalar-vector ops
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


Hello,

in file c-typeck.c, function build_binary_op, for mixed scalar-vector
operations, there are 2 cases: stv_firstarg and stv_secondarg. The first one
has:
                op0 = c_wrap_maybe_const (op0, true);
while the second has:
                op0 = c_wrap_maybe_const (op1, true);

I think the second one should read "op1 = ...", for symmetry.

I haven't managed to come up with a testcase that runs this line of code :-(


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

end of thread, other threads:[~2012-04-23 10:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21 12:09 [Bug c/53060] New: Typo in build_binary_op for scalar-vector ops marc.glisse at normalesup dot org
2012-04-21 13:44 ` [Bug c/53060] " manu at gcc dot gnu.org
2012-04-21 15:01 ` marc.glisse at normalesup dot org
2012-04-23 10:01 ` rguenth at gcc dot gnu.org
2012-04-23 10:21 ` rguenth at gcc dot gnu.org
2012-04-23 10:24 ` rguenth at gcc dot gnu.org
2012-04-23 10:38 ` rguenth at gcc dot gnu.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).