Summary: | sys-devel/gcc-4.7.3-r1 - ? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ewan.willis |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | ewan.willis, jordan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ewan.willis
2014-02-28 14:37:22 UTC
Please post your `emerge --info =sys-devel/gcc' output in a comment. (In reply to ewan.willis from comment #0) > The following (invalid) source produces an internal error > > class FooBase > { > public: > virtual bool isFoo() const = 0; > }; > > class Bar > { > public: > void addControl(const FooBase& foo) > { > mFoos.push_back(foo); > } > > private: > std::vector<FooBase> mFoos; > > }; That doesn't even parse. Could you give a complete, valid example, please? The sys-devel/gcc field from emerge --info is included in my first comment. Appart from lacking '#include <vector>' in the original comment the source there invariably results in the problem described. For clarity: #include <vector> class FooBase { public: virtual bool isFoo() const = 0; }; class Bar { public: void addControl(const FooBase& foo) { mFoos.push_back(foo); } private: std::vector<FooBase> mFoos; }; I hope this helps! (In reply to Jeroen Roovers from comment #1) > Please post your `emerge --info =sys-devel/gcc' output in a comment. |