Summary: | Substitution triggers compile-time error when it shouldn't | ||
---|---|---|---|
Product: | gcc | Reporter: | Marek Polacek <mpolacek> |
Component: | c++ | Assignee: | Patrick Palka <ppalka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ppalka, webrown.cpp |
Priority: | P3 | Keywords: | patch, rejects-valid |
Version: | unknown | ||
Target Milestone: | 12.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2021-04-28 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 94404 |
Description
Marek Polacek
2020-08-10 17:52:35 UTC
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>: https://gcc.gnu.org/g:b0d73a66ae3962fa83309527d85613d72a6aa43d commit r12-1398-gb0d73a66ae3962fa83309527d85613d72a6aa43d Author: Patrick Palka <ppalka@redhat.com> Date: Fri Jun 11 16:00:52 2021 -0400 c++: Substitute into function parms in lexical order [PR96560] This makes tsubst_arg_types substitute into a function's parameter types in left-to-right instead of right-to-left order, in accordance with DR 1227. DR 1227 PR c++/96560 gcc/cp/ChangeLog: * pt.c (tsubst_arg_types): Rearrange so that we substitute into TYPE_ARG_TYPES in forward order while short circuiting appropriately. Adjust formatting. gcc/testsuite/ChangeLog: * g++.dg/template/sfinae-dr1227.C: New test. Fixed. |