Summary: | g++ --std=c++17 -g internal compiler error: in create_tmp_var, at gimple-expr.c:519 | ||
---|---|---|---|
Product: | gcc | Reporter: | David Kredba <nheghathivhistha> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | jakub, jason, webrown.cpp |
Priority: | P3 | Keywords: | ice-on-valid-code |
Version: | 5.3.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2015-12-21 00:00:00 | |
Attachments: | Original source file from Gentoo Bugzilla |
Description
David Kredba
2015-12-21 12:45:40 UTC
What is going on is that cp_genericize_r first converts changes a by-reference RESULT_DECL into INDIRECT_REF of it, and then (dunno if because of tree sharing or some constexpr stuff) at some point that IL is passed again to cp_genericize_r again and again performs the same change, so we in the end have two nested INDIRECT_REFs and the types don't match any longer. |