https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504
--- Comment #6 from Will ---
A simpler example exhibiting this bogus error; an innocent, idiomatic,
pedantic, platonic pair of nested range-for loops iterating a 2D array:
g++ prog.cc -Wall -Wextra -std=c++14 -pedantic-errors
#include
templat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504
--- Comment #5 from Will ---
Oops -
I left the wandbox link on Clang...
Here's the GCC Head link:
https://wandbox.org/permlink/rfvn9VSwZgU6nerN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84031
--- Comment #6 from Will ---
Oops oops - posted on wrong place, can't see how to delete. Ignore.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84031
--- Comment #5 from Will ---
Oops - left the wandbox link on Clang...
Here's the GCC Head link:
https://wandbox.org/permlink/rfvn9VSwZgU6nerN
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504
Will changed:
What|Removed |Added
CC||will at dash dot org
--- Comment #4 from Will
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: will at dash dot org
Target Milestone: ---
In g++ >= 7.1.0 nameless bitfields are unpacked in structured binding
declarations.
GCC compiles this code with no error or warning.
using uint8_t = unsigned char;
str