public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60314] New: [4.9][C++1y] ICE with decltype(auto) when generating debug information
@ 2014-02-22  3:20 lucdanton at free dot fr
  2014-02-22 10:25 ` [Bug c++/60314] [C++1y] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lucdanton at free dot fr @ 2014-02-22  3:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60314
           Summary: [4.9][C++1y] ICE with decltype(auto) when generating
                    debug information
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lucdanton at free dot fr

Using trunk (g++-trunk (GCC) 4.9.0 20140222 (experimental)):

$ cat main.cpp 
// fine
// decltype(auto) qux() { return 42; }

struct foo {
    // also ICEs if not static
    static decltype(auto) bar()
    { return 42; }
};

int main()
{
}

$ g++-trunk -std=c++1y main.cpp # Succeeds
$ g++-trunk -std=c++1y main.cpp -g
main.cpp:4:8: internal compiler error: in gen_type_die_with_usage, at
dwarf2out.c:19864
 struct foo {
        ^
0x8dcdf9 gen_type_die_with_usage
    ../../gcc/gcc/dwarf2out.c:19864
0x8d9945 gen_decl_die
    ../../gcc/gcc/dwarf2out.c:20361
0x8db9f4 gen_member_die
    ../../gcc/gcc/dwarf2out.c:19414
0x8db9f4 gen_struct_or_union_type_die
    ../../gcc/gcc/dwarf2out.c:19486
0x8db9f4 gen_tagged_type_die
    ../../gcc/gcc/dwarf2out.c:19676
0x8dcd6d gen_type_die_with_usage
    ../../gcc/gcc/dwarf2out.c:19823
0x8d9ba2 gen_decl_die
    ../../gcc/gcc/dwarf2out.c:20400
0xae80b2 rest_of_type_compilation(tree_node*, int)
    ../../gcc/gcc/passes.c:283
0x653f70 finish_struct_1(tree_node*)
    ../../gcc/gcc/cp/class.c:6636
0x65548c finish_struct(tree_node*, tree_node*)
    ../../gcc/gcc/cp/class.c:6801
0x6880a1 cp_parser_class_specifier_1
    ../../gcc/gcc/cp/parser.c:19249
0x6880a1 cp_parser_class_specifier
    ../../gcc/gcc/cp/parser.c:19468
0x6880a1 cp_parser_type_specifier
    ../../gcc/gcc/cp/parser.c:14305
0x6a112d cp_parser_decl_specifier_seq
    ../../gcc/gcc/cp/parser.c:11547
0x6a7ab9 cp_parser_simple_declaration
    ../../gcc/gcc/cp/parser.c:11137
0x68b570 cp_parser_block_declaration
    ../../gcc/gcc/cp/parser.c:11086
0x6b4abb cp_parser_declaration
    ../../gcc/gcc/cp/parser.c:10983
0x6b373d cp_parser_declaration_seq_opt
    ../../gcc/gcc/cp/parser.c:10869
0x6b4f9a cp_parser_translation_unit
    ../../gcc/gcc/cp/parser.c:4014
0x6b4f9a c_parse_file()
    ../../gcc/gcc/cp/parser.c:31568
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.
>From gcc-bugs-return-444588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 22 04:14:10 2014
Return-Path: <gcc-bugs-return-444588-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20988 invoked by alias); 22 Feb 2014 04:14:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20928 invoked by uid 48); 22 Feb 2014 04:14:05 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/50677] volatile forces load into register
Date: Sat, 22 Feb 2014 04:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-50677-4-mtwCQDAJxa@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-50677-4@http.gcc.gnu.org/bugzilla/>
References: <bug-50677-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-02/txt/msg02345.txt.bz2
Content-length: 443

http://gcc.gnu.org/bugzilla/show_bug.cgi?idP677

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 60313 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2014-02-28 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-22  3:20 [Bug c++/60314] New: [4.9][C++1y] ICE with decltype(auto) when generating debug information lucdanton at free dot fr
2014-02-22 10:25 ` [Bug c++/60314] [C++1y] " paolo.carlini at oracle dot com
2014-02-22 13:58 ` rguenth at gcc dot gnu.org
2014-02-22 20:04 ` daniel.kruegler at googlemail dot com
2014-02-25  9:38 ` paolo.carlini at oracle dot com
2014-02-28 16:51 ` paolo at gcc dot gnu.org
2014-02-28 16:53 ` 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).