[Bug c++/92786] [c++11] static constexpr member link error

2019-12-03 Thread xavierb at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92786 --- Comment #1 from Xavier B --- additional info: - getting the array out of the struct works, - using 'namespace' instead of 'struct' also works fine.

[Bug c++/92786] New: [c++11] static constexpr member link error

2019-12-03 Thread xavierb at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: xavierb at gmail dot com Target Milestone: --- hi, this code doesn't link: --- struct STest { static int GetVal(int x) {return vals[x];} static constexpr int vals[] = { 1,2,3,4,4,4,4 }; }; int main

[Bug c++/61414] enum class bitfield size-checking needs a separate warning flag controlling it

2018-10-18 Thread xavierb at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414 --- Comment #15 from Xavier B --- hi, Just a ping for this issue. Since it's about declarations and it is not possible to disable it, as soon as you have headers files using the feature you get flooded with thousands of warnings making it

[Bug c++/86001] New: explicit default constructor not allowed in anonymous aggregate

2018-05-30 Thread xavierb at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xavierb at gmail dot com Target Milestone: --- Hello, In this example: union Union { int val; Union() = default; Union(int _v) : val(_v) {} }; struct StructA { Union