[Bug c++/71504] bogus error: accessing value through a glvalue in a constant expression

2018-04-01 Thread will at dash dot org
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

[Bug c++/71504] bogus error: accessing value through a glvalue in a constant expression

2018-03-31 Thread will at dash dot org
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

[Bug c++/84031] structured binding unpacks nameless padding bitfields

2018-03-31 Thread will at dash dot org
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.

[Bug c++/84031] structured binding unpacks nameless padding bitfields

2018-03-31 Thread will at dash dot org
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

[Bug c++/71504] bogus error: accessing value through a glvalue in a constant expression

2018-03-31 Thread will at dash dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71504 Will changed: What|Removed |Added CC||will at dash dot org --- Comment #4 from

[Bug c++/84031] New: structured binding unpacks nameless padding bitfields

2018-01-24 Thread will at dash dot org
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