This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58950] Missing "statement has no effect"
- From: "nightstrike at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Aug 2017 12:47:18 +0000
- Subject: [Bug c++/58950] Missing "statement has no effect"
- Auto-submitted: auto-generated
- References: <bug-58950-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58950
nightstrike <nightstrike at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nightstrike at gmail dot com
--- Comment #23 from nightstrike <nightstrike at gmail dot com> ---
Given that Comment #1 clearly shows g++ 4.8 working, I think this should
qualify as a regression. Moreover, g++ 6.2 works correctly, so this was fixed
at some point between 4.9 and 6.2:
$ cat > a.cc
void f() {
int i __attribute__((vector_size(2*sizeof(int))))={2,3};
__builtin_shuffle(i,i);
}
$ g++ -c a.cc -Wunused-value
a.cc: In function 'void f()':
a.cc:3:3: warning: value computed is not used [-Wunused-value]
__builtin_shuffle(i,i);
^~~~~~~~~~~~~~~~~