arm g++ fails to consider default initializers when checking inherited constructors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
This bug was reported for GCC: https:/
Still seems to be the case:
class B
{
public:
B(int b) : _b(b) {}
private:
int _b;
};
class N
{
public:
N() = delete;
N(int n) : _n(n) {}
private:
int _n;
};
struct D : public B
{
using B::B;
N n{100};
};
int main(void)
{
D obj{200};
}
$ arm-none-eabi-g++ --std=c++14 -c c.cc
/tmp/c.cc: In function 'int main()':
/tmp/
D obj{200};
^
/tmp/
using B::B;
^
/tmp/
/tmp/c.cc:14:3: note: declared here
N() = delete;
^
Details:
arm-none-eabi-g++ 5.4.1 20160919 (release) binary package on MacOS Sierra
Bug report related to language support are better suited for bugzilla as we focus more on the platform support. I would suggest you ping the bugzilla ticket, perhaps people didn't notice it the first time.
Best regards.