Bug 858351
Summary: | segfault on compiling partial specialization code | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | takehiro iyatomi <iyatomi> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED ERRATA | QA Contact: | Miroslav Franc <mfranc> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.3 | CC: | jason, law, mcermak, mfranc, mpolacek, ohudlick | ||||
Target Milestone: | rc | ||||||
Target Release: | 6.6 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gcc-4.4.7-5.el6 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, GCC could crash on an invalid C++ code involving a partial specialization of a member of a partial specialization. The bug has been fixed and GCC now issues a translation-time error instead of crashing.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-10-14 05:01:19 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1023566 | ||||||
Attachments: |
|
Description
takehiro iyatomi
2012-09-18 18:22:16 UTC
To be equivalent to the in-class version, your out-of-class partial specialization needs another template header. So instead of template <typename R, template <class T> class REFER> struct functional<R (), REFER>::callee<R (*)(), REFER> { you would have template <typename R, template <class T> class REFER> template <typename _R, template <class T> class REF> struct functional<R (), REFER>::callee<_R (*)(), REF> { Certainly G++ should give a more useful error message. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. 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. http://rhn.redhat.com/errata/RHBA-2014-1377.html |