public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58950] New: [4.9 Regression] Missing "statement has no effect"
@ 2013-10-31 23:11 glisse at gcc dot gnu.org
  2013-11-19  9:49 ` [Bug c++/58950] " rguenth at gcc dot gnu.org
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-10-31 23:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58950
           Summary: [4.9 Regression] Missing "statement has no effect"
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org

void f(){
  int i __attribute__((vector_size(2*sizeof(int)))) = { 2, 3 };
  __builtin_shuffle (i, i);
}

g++-4.8:
x.c:3:3: warning: statement has no effect [-Wunused-value]

gcc-4.9:
x.c:3:3: warning: value computed is not used [-Wunused-value]

g++-4.9: nothing :-(
We do warn for i+i, but not for (i+i) (again this is missing only in C++).


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

end of thread, other threads:[~2021-12-10 21:34 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 23:11 [Bug c++/58950] New: [4.9 Regression] Missing "statement has no effect" glisse at gcc dot gnu.org
2013-11-19  9:49 ` [Bug c++/58950] " rguenth at gcc dot gnu.org
2013-11-19 10:43 ` rguenth at gcc dot gnu.org
2013-11-25 22:49 ` glisse at gcc dot gnu.org
2013-11-26  6:14 ` glisse at gcc dot gnu.org
2013-11-26  8:18 ` ebotcazou at gcc dot gnu.org
2013-11-26 19:58 ` glisse at gcc dot gnu.org
2013-11-30 15:12 ` glisse at gcc dot gnu.org
2013-11-30 15:36 ` glisse at gcc dot gnu.org
2013-11-30 17:07 ` ebotcazou at gcc dot gnu.org
2014-01-03  3:29 ` jason at gcc dot gnu.org
2014-01-03 10:35 ` glisse at gcc dot gnu.org
2014-01-03 21:12 ` glisse at gcc dot gnu.org
2014-01-03 21:19 ` [Bug c++/58950] " glisse at gcc dot gnu.org
2014-02-24 15:26 ` glisse at gcc dot gnu.org
2014-02-24 16:09 ` paolo.carlini at oracle dot com
2014-02-24 16:15 ` glisse at gcc dot gnu.org
2014-02-24 16:19 ` paolo.carlini at oracle dot com
2014-04-22 11:36 ` jakub at gcc dot gnu.org
2014-07-16 13:27 ` jakub at gcc dot gnu.org
2014-10-30 10:38 ` jakub at gcc dot gnu.org
2015-04-08  9:32 ` mpolacek at gcc dot gnu.org
2015-06-26 20:04 ` jakub at gcc dot gnu.org
2015-06-26 20:34 ` jakub at gcc dot gnu.org
2015-06-26 21:28 ` pinskia at gcc dot gnu.org
2021-12-10 21:31 ` pinskia at gcc dot gnu.org
2021-12-10 21:34 ` pinskia 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).