public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast
@ 2014-02-24 20:13 reichelt at gcc dot gnu.org
  2014-03-18 20:32 ` [Bug c++/60332] " reichelt at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-24 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60332
           Summary: [c++1y] ICE with auto in function-pointer cast
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, lto
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following valid(?) code snippet (compiled with "-std=c++1y -flto")
triggers an ICE on trunk:

=================================================================================
void foo();

auto f = (auto(*)())(&foo);
=================================================================================

bug.cc:3:27: internal compiler error: tree code 'template_type_parm' is not
supported in LTO streams
 auto f = (auto(*)())(&foo);
                           ^
0xaba08d DFS_write_tree
        ../../gcc/gcc/lto-streamer-out.c:1300
0xab941f DFS_write_tree_body
        ../../gcc/gcc/lto-streamer-out.c:476
0xab941f DFS_write_tree
        ../../gcc/gcc/lto-streamer-out.c:1208
0xab941f DFS_write_tree_body
        ../../gcc/gcc/lto-streamer-out.c:476
0xab941f DFS_write_tree
        ../../gcc/gcc/lto-streamer-out.c:1208
0xab941f DFS_write_tree_body
        ../../gcc/gcc/lto-streamer-out.c:476
0xab941f DFS_write_tree
        ../../gcc/gcc/lto-streamer-out.c:1208
0xabb727 lto_output_tree(output_block*, tree_node*, bool, bool)
        ../../gcc/gcc/lto-streamer-out.c:1390
0xab5aef write_global_stream
        ../../gcc/gcc/lto-streamer-out.c:2100
0xabd99e lto_output_decl_state_streams
        ../../gcc/gcc/lto-streamer-out.c:2144
0xabd99e produce_asm_for_decls()
        ../../gcc/gcc/lto-streamer-out.c:2429
0xaffe4f write_lto
        ../../gcc/gcc/passes.c:2297
0xb02ec0 ipa_write_summaries_1
        ../../gcc/gcc/passes.c:2356
0xb02ec0 ipa_write_summaries()
        ../../gcc/gcc/passes.c:2413
0x891cf7 ipa_passes
        ../../gcc/gcc/cgraphunit.c:2078
0x891cf7 compile()
        ../../gcc/gcc/cgraphunit.c:2174
0x892224 finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2329
0x68deee cp_write_global_declarations()
        ../../gcc/gcc/cp/decl2.c:4449
Please submit a full bug report, [etc.]


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

* [Bug c++/60332] [c++1y] ICE with auto in function-pointer cast
  2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
@ 2014-03-18 20:32 ` reichelt at gcc dot gnu.org
  2014-03-19  7:28 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-03-18 20:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
The testcase doesn't fail anymore since 2014-03-08.
Jason, I suspect that this is due to your changes on the day before.
Do you want to add this testcase to the testsuite?


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

* [Bug c++/60332] [c++1y] ICE with auto in function-pointer cast
  2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
  2014-03-18 20:32 ` [Bug c++/60332] " reichelt at gcc dot gnu.org
@ 2014-03-19  7:28 ` jakub at gcc dot gnu.org
  2014-03-19 15:18 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-19  7:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, since r208415 is rejected as invalid.


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

* [Bug c++/60332] [c++1y] ICE with auto in function-pointer cast
  2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
  2014-03-18 20:32 ` [Bug c++/60332] " reichelt at gcc dot gnu.org
  2014-03-19  7:28 ` jakub at gcc dot gnu.org
@ 2014-03-19 15:18 ` paolo.carlini at oracle dot com
  2014-03-19 15:49 ` paolo.carlini at oracle dot com
  2014-03-19 15:49 ` paolo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-19 15:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I'm adding it to the testsuite.


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

* [Bug c++/60332] [c++1y] ICE with auto in function-pointer cast
  2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-03-19 15:49 ` paolo.carlini at oracle dot com
@ 2014-03-19 15:49 ` paolo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-03-19 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Mar 19 15:48:39 2014
New Revision: 208684

URL: http://gcc.gnu.org/viewcvs?rev=208684&root=gcc&view=rev
Log:
2014-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/60332
    * g++.dg/cpp1y/pr60332.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr60332.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/60332] [c++1y] ICE with auto in function-pointer cast
  2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-03-19 15:18 ` paolo.carlini at oracle dot com
@ 2014-03-19 15:49 ` paolo.carlini at oracle dot com
  2014-03-19 15:49 ` paolo at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-03-19 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.


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

end of thread, other threads:[~2014-03-19 15:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24 20:13 [Bug c++/60332] New: [c++1y] ICE with auto in function-pointer cast reichelt at gcc dot gnu.org
2014-03-18 20:32 ` [Bug c++/60332] " reichelt at gcc dot gnu.org
2014-03-19  7:28 ` jakub at gcc dot gnu.org
2014-03-19 15:18 ` paolo.carlini at oracle dot com
2014-03-19 15:49 ` paolo.carlini at oracle dot com
2014-03-19 15:49 ` paolo 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).