Bug 1802608
Summary: | g++ rejects a valid code | ||
---|---|---|---|
Product: | Red Hat Developer Toolset | Reporter: | Joe Wright <jwright> |
Component: | gcc | Assignee: | Marek Polacek <mpolacek> |
Status: | CLOSED ERRATA | QA Contact: | Alexandra Petlanová Hájková <ahajkova> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | DTS 9.0 RHEL 7 | CC: | ahajkova, alanm, casantos, fweimer, jakub, kwalker, law, mcermak, mkolbas, mnewsome, mpolacek, ohudlick, pandrade, sipoyare, tborcin |
Target Milestone: | alpha | Keywords: | Triaged |
Target Release: | 9.1 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | devtoolset-9-gcc-9.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: |
Cause: A mismatch in template argument deduction.
Consequence: Valid C++ code would fail to compile.
Fix: Don't reduce the template level of template parameters
when performing template argument deduction substitution.
Result: The code compiles correctly.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-26 06:07:39 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: |
Description
Joe Wright
2020-02-13 14:32:08 UTC
Thanks for the report, I will restart my work on the fix next week (I'm on PTO today and Friday). Also fixing the component. Fixed upstream: https://gcc.gnu.org/g:6b3302da9ef26aa11940f8c0dc92bec19e15c09b Fixed in gcc 9 too: https://gcc.gnu.org/g:581825efc30ce79d86dfb0ebf378913fdec44adf 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://access.redhat.com/errata/RHSA-2020:2274 |