[Bug c++/78011] New: Compiler error when initializing a member of template type where the second template argument is a typedef
b.stanimirov at abv dot bg
gcc-bugzilla@gcc.gnu.org
Mon Oct 17 14:33:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78011
Bug ID: 78011
Summary: Compiler error when initializing a member of template
type where the second template argument is a typedef
Product: gcc
Version: 5.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: b.stanimirov at abv dot bg
Target Milestone: ---
Repro:
typedef int int32;
struct foo
{
std::map<int, int32> bar = std::map<int, int32>{};
};
If the initialization is removed, or if it's in a function and not in a class,
it compiles fine.
Live demo: http://ideone.com/8hWLnn
More information about the Gcc-bugs
mailing list