Bug 1212424
| Summary: | internal compiler error: in finish_member_declaration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Developer Toolset | Reporter: | Gregor Jasny <gjasny> | ||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Michael Petlan <mpetlan> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | DTS 3.0 RHEL 6 | CC: | d.andric, law, mcermak, mnewsome, mpetlan, mpolacek, ohudlick | ||||
| Target Milestone: | alpha | ||||||
| Target Release: | 5.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-11-15 10:07:51 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Gregor Jasny
2015-04-16 11:49:21 UTC
Reproduced, even GCC mainline ICEs. In fact, I think this is PR50800. As a workaround, try not to use typedefs with may_alias (or similar attributes) as template parameters. (In reply to Marek Polacek from comment #3) > As a workaround, try not to use typedefs with may_alias (or similar > attributes) as template parameters. The problem here is that such typedefs come straight out of boost-devel, e.g. on RHEL7 with boost-devel-1.53.0-23.el7.x86_64, the header /usr/include/boost/move/core.hpp has: //Move emulation rv breaks standard aliasing rules so add workarounds for some compilers #if defined(__GNUC__) && (__GNUC__ >= 4) #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS __attribute__((__may_alias__)) #else #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS #endif You can also see this in gcc PR50800, where the original submitter encounters the ICE when compiling something that includes boost: /home/gaunard/dev/boost/trunk/boost/type_traits/detail/cv_traits_impl.hpp:36:1: internal compiler error: in finish_member_declaration, at cp/semantics.c:2559 Note that this ICE also reproduces with gcc-c++-4.8.3-9.el7.x86_64, which is the default compiler in RHEL7. So possibly many boost users are going to run into this. Reproducible easily, verified with devtoolset-6-gcc-6.2.1-3.1.el{67}.
VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2734.html |