Summary: | [8 Regression] FAIL: g++.dg/cpp1z/constexpr-lambda8.C (test for excess errors) | ||
---|---|---|---|
Product: | gcc | Reporter: | H.J. Lu <hjl.tools> |
Component: | c++ | Assignee: | Jason Merrill <jason> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jakub, jason, webrown.cpp |
Priority: | P1 | ||
Version: | 8.2.1 | ||
Target Milestone: | 8.3 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2019-02-09 00:00:00 |
Description
H.J. Lu
2019-02-09 12:54:49 UTC
This changed with r268700, the same set of errors/notes is emitted before and after, but error: call to non-‘constexpr’ function ‘<lambda(auto:3)> [with auto:3 = int]’ used to be emitted on line 11 and now is emitted on line 9 instead. Note, trunk emits it on line 11. Do we want to adjust the testcase, or change something in the compiler? The trunk has unlike 8.x the first hunk from r268377 which handles CALL_FROM_THUNK_P elsewhere, and that is where it clears EXPR_LOCATION on the call too. Author: jason Date: Mon Feb 11 17:57:41 2019 New Revision: 268776 URL: https://gcc.gnu.org/viewcvs?rev=268776&root=gcc&view=rev Log: PR c++/89267 - change of error location. * pt.c (tsubst_copy_and_build): Do still clear expr location for instantiated thunk calls. Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/pt.c Fixed. |