* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
@ 2012-06-16 17:49 ` hjl.tools at gmail dot com
2012-06-18 9:03 ` rguenth at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl.tools at gmail dot com @ 2012-06-16 17:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-06-16
CC| |paolo.carlini at oracle dot
| |com
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-06-16 17:48:52 UTC ---
It is caused by revision 185722:
http://gcc.gnu.org/ml/gcc-cvs/2012-03/msg01052.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
2012-06-16 17:49 ` [Bug middle-end/53696] " hjl.tools at gmail dot com
@ 2012-06-18 9:03 ` rguenth at gcc dot gnu.org
2012-09-07 8:08 ` rguenth at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-18 9:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.2
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
2012-06-16 17:49 ` [Bug middle-end/53696] " hjl.tools at gmail dot com
2012-06-18 9:03 ` rguenth at gcc dot gnu.org
@ 2012-09-07 8:08 ` rguenth at gcc dot gnu.org
2012-09-07 8:35 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 8:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (2 preceding siblings ...)
2012-09-07 8:08 ` rguenth at gcc dot gnu.org
@ 2012-09-07 8:35 ` paolo.carlini at oracle dot com
2012-09-20 10:24 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-09-07 8:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-07 08:35:41 UTC ---
Bah, in my opinion ranking P2 an ice on invalid after meaningful diagnostics,
which moreover happens on a testcase which used to ice anyway before my patch,
only, without the keep-inline-functions on the command line, doesn't look
right. Anyway, I'll see what I can do, for .0 we may have to revert my patch.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (3 preceding siblings ...)
2012-09-07 8:35 ` paolo.carlini at oracle dot com
@ 2012-09-20 10:24 ` jakub at gcc dot gnu.org
2012-12-07 15:54 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-09-20 10:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.2 |4.7.3
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-09-20 10:19:02 UTC ---
GCC 4.7.2 has been released.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (4 preceding siblings ...)
2012-09-20 10:24 ` jakub at gcc dot gnu.org
@ 2012-12-07 15:54 ` jakub at gcc dot gnu.org
2012-12-07 16:21 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-07 15:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-07 15:54:22 UTC ---
And
struct A;
template <int N>
void foo(A& a)
{
[=](){a;};
}
void
bar (A&a)
{
foo<6>(a);
}
ICEs even without -fkeep-inline-functions elsewhere.
I wonder if
else
/* Capture by copy requires a complete type. */
type = complete_type (type);
in semantics.c (add_capture) shouldn't be something like:
--- cp/semantics.c.jj 2012-12-06 21:33:57.000000000 +0100
+++ cp/semantics.c 2012-12-07 16:45:30.000000000 +0100
@@ -9164,7 +9164,14 @@ add_capture (tree lambda, tree id, tree
}
else
/* Capture by copy requires a complete type. */
- type = complete_type (type);
+ {
+ if (processing_template_decl)
+ type = complete_type (type);
+ else
+ type = complete_type_or_else (type, initializer);
+ if (type == NULL_TREE)
+ type = error_mark_node;
+ }
/* Add __ to the beginning of the field name so that user code
won't find the field with name lookup. We can't just leave the name
This fixes the ICE in #c0 (but we error twice for the incomplete type, once
within the lambda, once within the parent function).
For templates it of course doesn't change anything, we I think generally can't
require the type to be complete there, so it must be done later during pt.c.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (5 preceding siblings ...)
2012-12-07 15:54 ` jakub at gcc dot gnu.org
@ 2012-12-07 16:21 ` paolo.carlini at oracle dot com
2012-12-07 16:27 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-12-07 16:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-12-07 16:20:35 UTC ---
If you want me to revert that patchlet of mine don't be afraid to ask, after
all was just an ice on invalid, no big deal. Can do that immediately and then
we have all the time to figure out something better with no fear of
regressions, even minor.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (6 preceding siblings ...)
2012-12-07 16:21 ` paolo.carlini at oracle dot com
@ 2012-12-07 16:27 ` jakub at gcc dot gnu.org
2013-04-11 7:59 ` [Bug middle-end/53696] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-12-07 16:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-07 16:27:14 UTC ---
(In reply to comment #5)
> If you want me to revert that patchlet of mine don't be afraid to ask, after
> all was just an ice on invalid, no big deal. Can do that immediately and then
> we have all the time to figure out something better with no fear of
> regressions, even minor.
This is also an ice-on-invalid, so trading one for another one doesn't buy us
much. And, don't we ICE for the testcase with template anyway?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8/4.9 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (7 preceding siblings ...)
2012-12-07 16:27 ` jakub at gcc dot gnu.org
@ 2013-04-11 7:59 ` rguenth at gcc dot gnu.org
2014-06-12 13:48 ` [Bug middle-end/53696] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-04-11 7:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.3 |4.7.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-04-11 07:59:24 UTC ---
GCC 4.7.3 is being released, adjusting target milestone.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.7/4.8/4.9/4.10 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (8 preceding siblings ...)
2013-04-11 7:59 ` [Bug middle-end/53696] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
@ 2014-06-12 13:48 ` rguenth at gcc dot gnu.org
2014-06-13 14:03 ` [Bug middle-end/53696] [4.8/4.9/4.10 " paolo.carlini at oracle dot com
2014-06-13 18:41 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.4 |4.8.4
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.8/4.9/4.10 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (9 preceding siblings ...)
2014-06-12 13:48 ` [Bug middle-end/53696] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-06-13 14:03 ` paolo.carlini at oracle dot com
2014-06-13 18:41 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-13 14:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> ---
By the way, in mainline I can't reproduce this anymore.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/53696] [4.8/4.9/4.10 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda
2012-06-16 12:02 [Bug middle-end/53696] New: [4.7/4.8 Regression] ICE: SIGSEGV in gimplify_decl_expr (gimplify.c:1454) with -fkeep-inline-functions on invalid use of lambda zsojka at seznam dot cz
` (10 preceding siblings ...)
2014-06-13 14:03 ` [Bug middle-end/53696] [4.8/4.9/4.10 " paolo.carlini at oracle dot com
@ 2014-06-13 18:41 ` jason at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-13 18:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53696
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Can't reproduce on the current 4.8 or 4.9 branch either. Closing.
^ permalink raw reply [flat|nested] 13+ messages in thread