++
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
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.
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
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 impos