public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
@ 2014-02-17 21:52 reichelt at gcc dot gnu.org
  2014-02-17 21:52 ` [Bug c++/60253] " reichelt at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-17 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60253
           Summary: [4.7/4.8/4.9 Regression] ICE passing class object
                    through ellipsis (...)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following invalid code snippet triggers an ICE since GCC 4.7.0:

====================================
struct A
{
  ~A();
};

struct B
{
  B(...);
};

B b(0, A());
====================================

bug.cc:11:11: error: cannot pass objects of non-trivially-copyable type 'struct
A' through '...'
 B b(0, A());
           ^
bug.cc: In function 'void __static_initialization_and_destruction_0(int, int)':
bug.cc:11:3: internal compiler error: in create_tmp_var, at gimple-expr.c:506
 B b(0, A());
   ^
0x9d4fa3 create_tmp_var(tree_node*, char const*)
        ../../gcc/gcc/gimple-expr.c:506
0x9fe66c create_tmp_from_val
        ../../gcc/gcc/gimplify.c:457
0x9fe66c lookup_tmp_var
        ../../gcc/gcc/gimplify.c:479
0x9fe66c internal_get_tmp_var
        ../../gcc/gcc/gimplify.c:523
0x9f7261 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:8346
0xa02038 gimplify_call_expr
        ../../gcc/gcc/gimplify.c:2375
0x9f76b7 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7419
0x9fc086 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x9f7742 gimplify_cleanup_point_expr
        ../../gcc/gcc/gimplify.c:5117
0x9f7742 gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7811
0x9fc086 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0x9f81ab gimplify_statement_list
        ../../gcc/gcc/gimplify.c:1412
0x9f81ab gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7863
0x9fc086 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0xa00571 gimplify_cond_expr
        ../../gcc/gcc/gimplify.c:3066
0x9f7c1c gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7404
0x9fc086 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
0xa00571 gimplify_cond_expr
        ../../gcc/gcc/gimplify.c:3066
0x9f7c1c gimplify_expr(tree_node**, gimple_statement_base**,
gimple_statement_base**, bool (*)(tree_node*), int)
        ../../gcc/gcc/gimplify.c:7404
0x9fc086 gimplify_stmt(tree_node**, gimple_statement_base**)
        ../../gcc/gcc/gimplify.c:5341
Please submit a full bug report, [etc.]


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
@ 2014-02-17 21:52 ` reichelt at gcc dot gnu.org
  2014-02-18  7:05 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-17 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.5.0, 4.6.0
   Target Milestone|---                         |4.7.4
      Known to fail|                            |4.7.0, 4.8.0, 4.9.0


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
  2014-02-17 21:52 ` [Bug c++/60253] " reichelt at gcc dot gnu.org
@ 2014-02-18  7:05 ` jakub at gcc dot gnu.org
  2014-02-18  9:24 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-18  7:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-02-18
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r171146.


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
  2014-02-17 21:52 ` [Bug c++/60253] " reichelt at gcc dot gnu.org
  2014-02-18  7:05 ` jakub at gcc dot gnu.org
@ 2014-02-18  9:24 ` rguenth at gcc dot gnu.org
  2014-02-21 10:22 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-02-18  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-02-18  9:24 ` rguenth at gcc dot gnu.org
@ 2014-02-21 10:22 ` paolo.carlini at oracle dot com
  2014-02-27 23:16 ` paolo at gcc dot gnu.org
  2014-02-27 23:17 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-02-21 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-02-21 10:22 ` paolo.carlini at oracle dot com
@ 2014-02-27 23:16 ` paolo at gcc dot gnu.org
  2014-02-27 23:17 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-02-27 23:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Feb 27 23:15:20 2014
New Revision: 208208

URL: http://gcc.gnu.org/viewcvs?rev=208208&root=gcc&view=rev
Log:
/cp
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/60253
    * call.c (convert_arg_to_ellipsis): Return error_mark_node after
    error_at.

/testsuite
2014-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/60253
    * g++.dg/overload/ellipsis2.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/overload/ellipsis2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/60253] [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...)
  2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-02-27 23:16 ` paolo at gcc dot gnu.org
@ 2014-02-27 23:17 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-02-27 23:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
           Assignee|paolo.carlini at oracle dot com    |unassigned at gcc dot gnu.org
   Target Milestone|4.7.4                       |4.9.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.0.


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

end of thread, other threads:[~2014-02-27 23:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17 21:52 [Bug c++/60253] New: [4.7/4.8/4.9 Regression] ICE passing class object through ellipsis (...) reichelt at gcc dot gnu.org
2014-02-17 21:52 ` [Bug c++/60253] " reichelt at gcc dot gnu.org
2014-02-18  7:05 ` jakub at gcc dot gnu.org
2014-02-18  9:24 ` rguenth at gcc dot gnu.org
2014-02-21 10:22 ` paolo.carlini at oracle dot com
2014-02-27 23:16 ` paolo at gcc dot gnu.org
2014-02-27 23:17 ` paolo.carlini at oracle dot com

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).