public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55520] New: [C++11
@ 2012-11-28 21:16 etlverified at gmail dot com
  2012-11-28 21:17 ` [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122 etlverified at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: etlverified at gmail dot com @ 2012-11-28 21:16 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

             Bug #: 55520
           Summary: [C++11
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: etlverified@gmail.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
  2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
@ 2012-11-28 21:17 ` etlverified at gmail dot com
  2012-11-29  7:58 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: etlverified at gmail dot com @ 2012-11-28 21:17 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

etlverified at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[C++11                      |[C++11] ICE when capturing
                   |                            |a variable-length stack
                   |                            |array in lambda; in
                   |                            |expand_expr_real_1, at
                   |                            |expr.c:9122

--- Comment #1 from etlverified at gmail dot com 2012-11-28 21:17:29 UTC ---
int main(int argc, char** argv)
{
    int x[1][argc];

    [&x](int i)
    {
        x[0][i]  = 0;
    }(5);

    return 0;
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
  2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
  2012-11-28 21:17 ` [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122 etlverified at gmail dot com
@ 2012-11-29  7:58 ` mpolacek at gcc dot gnu.org
  2012-11-30  9:31 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2012-11-29  7:58 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-11-29 07:58:16 UTC ---
Reproduced with trunk.  Might be related/dupe of PR55240.

p.C: In lambda function:
p.C:7:20: internal compiler error: in expand_expr_real_1, at expr.c:9231
              x[0][i]  = 0;
                    ^
0x861392 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**)
    /home/polacek/src/gcc/gcc/expr.c:9231
0x8639cd expand_expr
    /home/polacek/src/gcc/gcc/expr.h:444
0x8639cd expand_operands
    /home/polacek/src/gcc/gcc/expr.c:7432
0x86eefe expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
    /home/polacek/src/gcc/gcc/expr.c:8505
0x7976a6 expand_gimple_stmt_1
    /home/polacek/src/gcc/gcc/cfgexpand.c:2245
0x7976a6 expand_gimple_stmt
    /home/polacek/src/gcc/gcc/cfgexpand.c:2305
0x7987f9 expand_gimple_basic_block
    /home/polacek/src/gcc/gcc/cfgexpand.c:4084
0x799fe1 gimple_expand_cfg
    /home/polacek/src/gcc/gcc/cfgexpand.c:4603
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
  2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
  2012-11-28 21:17 ` [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122 etlverified at gmail dot com
  2012-11-29  7:58 ` mpolacek at gcc dot gnu.org
@ 2012-11-30  9:31 ` paolo.carlini at oracle dot com
  2013-06-07  2:27 ` jason at gcc dot gnu.org
  2013-06-07 12:44 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-30  9:31 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-30 09:31:13 UTC ---
.

*** This bug has been marked as a duplicate of bug 55149 ***


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
  2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
                   ` (2 preceding siblings ...)
  2012-11-30  9:31 ` paolo.carlini at oracle dot com
@ 2013-06-07  2:27 ` jason at gcc dot gnu.org
  2013-06-07 12:44 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2013-06-07  2:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
             Status|RESOLVED                    |ASSIGNED
   Last reconfirmed|                            |2013-06-07
                 CC|                            |jason at gcc dot gnu.org
         Resolution|DUPLICATE                   |---
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Not a duplicate.  This capture is ill-formed, as x has a variable-size type
which is not a C++14 array of runtime bound because a bound other than the
first one is variable.  But we still shouldn't ICE.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122
  2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
                   ` (3 preceding siblings ...)
  2013-06-07  2:27 ` jason at gcc dot gnu.org
@ 2013-06-07 12:44 ` jason at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2013-06-07 12:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55520

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-07 12:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-28 21:16 [Bug c++/55520] New: [C++11 etlverified at gmail dot com
2012-11-28 21:17 ` [Bug c++/55520] [C++11] ICE when capturing a variable-length stack array in lambda; in expand_expr_real_1, at expr.c:9122 etlverified at gmail dot com
2012-11-29  7:58 ` mpolacek at gcc dot gnu.org
2012-11-30  9:31 ` paolo.carlini at oracle dot com
2013-06-07  2:27 ` jason at gcc dot gnu.org
2013-06-07 12:44 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).