This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80267] [7 Regression] Compiling aborts when template/auto/lambda occur in some way
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 31 Mar 2017 07:44:41 +0000
- Subject: [Bug c++/80267] [7 Regression] Compiling aborts when template/auto/lambda occur in some way
- Auto-submitted: auto-generated
- References: <bug-80267-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80267
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc75 ~ % cat bug.ii
template <typename> void a() {
int b;
auto &c = b;
[&] {
c;
[&] { c; };
};
}
void d() { a<int>(); }
trippels@gcc75 ~ % g++ -c bug.ii
bug.ii: In instantiation of ‘a()::<lambda()>::<lambda()> [with
<template-parameter-1-1> = int]’:
bug.ii:6:7: required from ‘struct a()::<lambda()> [with
<template-parameter-1-1> = int]::<lambda()>’
bug.ii:6:5: required from ‘a()::<lambda()> [with <template-parameter-1-1> =
int]’
bug.ii:4:5: required from ‘struct a() [with <template-parameter-1-1> =
int]::<lambda()>’
bug.ii:4:3: required from ‘void a() [with <template-parameter-1-1> = int]’
bug.ii:9:19: required from here
bug.ii:6:11: internal compiler error: in tsubst_copy, at cp/pt.c:14609