public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60376] [4.9 Regression] [c++1y] ICE using member function in a template function
Date: Sun, 02 Mar 2014 21:20:00 -0000	[thread overview]
Message-ID: <bug-60376-4-yQJK8HI8WZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60376-4@http.gcc.gnu.org/bugzilla/>

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|error-recovery              |ice-on-valid-code
            Summary|[4.9 Regression] [c++1y]    |[4.9 Regression] [c++1y]
                   |ICE with invalid use of     |ICE using member function
                   |using                       |in a template function

--- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
While the original testcase was invald, here's a valid one that crashes
in the same place:

====================================
struct A
{
  void foo();
};

template<typename T> void bar(T)
{
  (A().foo)();
}
====================================

bug.cc: In function 'void bar(T)':
bug.cc:8:13: internal compiler error: in type_dependent_expression_p, at
cp/pt.c:20901
   (A().foo)();
             ^
0x6049a1 type_dependent_expression_p(tree_node*)
        ../../gcc/gcc/cp/pt.c:20900
0x734ef4 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ../../gcc/gcc/cp/semantics.c:2199
0x6b8901 cp_parser_postfix_expression
        ../../gcc/gcc/cp/parser.c:6164
0x6bb493 cp_parser_unary_expression
        ../../gcc/gcc/cp/parser.c:7170
0x6bc17f cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:7874
0x6bc661 cp_parser_assignment_expression
        ../../gcc/gcc/cp/parser.c:8112
0x6bea73 cp_parser_expression
        ../../gcc/gcc/cp/parser.c:8274
0x6bf29c cp_parser_expression
        ../../gcc/gcc/cp/parser.c:8313
0x6bf29c cp_parser_expression_statement
        ../../gcc/gcc/cp/parser.c:9622
0x6b4788 cp_parser_statement
        ../../gcc/gcc/cp/parser.c:9473
0x6b5559 cp_parser_statement_seq_opt
        ../../gcc/gcc/cp/parser.c:9745
0x6b56c6 cp_parser_compound_statement
        ../../gcc/gcc/cp/parser.c:9699
0x6c667b cp_parser_function_body
        ../../gcc/gcc/cp/parser.c:18694
0x6c667b cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/gcc/cp/parser.c:18730
0x6cdc12 cp_parser_function_definition_after_declarator
        ../../gcc/gcc/cp/parser.c:22843
0x6ceab1 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/gcc/cp/parser.c:22755
0x6ceab1 cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:16589
0x6cee4a cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:23164
0x6cf134 cp_parser_template_declaration_after_export
        ../../gcc/gcc/cp/parser.c:22966
0x6da4d9 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:10947
Please submit a full bug report, [etc.]


  parent reply	other threads:[~2014-03-02 21:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-01  0:20 [Bug c++/60376] New: [4.9 Regression] ICE with invalid use of using reichelt at gcc dot gnu.org
2014-03-01  0:21 ` [Bug c++/60376] " reichelt at gcc dot gnu.org
2014-03-02 18:30 ` [Bug c++/60376] [4.9 Regression] [c++1y] " paolo.carlini at oracle dot com
2014-03-02 21:20 ` reichelt at gcc dot gnu.org [this message]
2014-03-03  9:00 ` [Bug c++/60376] [4.9 Regression] [c++1y] ICE using member function in a template function rguenth at gcc dot gnu.org
2014-03-03  9:21 ` paolo.carlini at oracle dot com
2014-03-04 10:52 ` paolo at gcc dot gnu.org
2014-03-04 10:56 ` [Bug c++/60376] [4.9 Regression] [c++1y] ICE on invalid with using declaration in " paolo.carlini at oracle dot com
2014-03-07 20:17 ` reichelt at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60376-4-yQJK8HI8WZ@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).