public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66607] New: ICE instantiating a template on a function reference
@ 2015-06-19 20:38 msebor at gcc dot gnu.org
  2015-06-21  7:52 ` [Bug c++/66607] " trippels at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: msebor at gcc dot gnu.org @ 2015-06-19 20:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66607

            Bug ID: 66607
           Summary: ICE instantiating a template on a function reference
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

Today's trunk (revision 224699) fails with an ICE on the C++ program below:

$ cat /build/tmp/u.cpp && /build/gcc-trunk/gcc/xg++ -B/build/gcc-trunk/gcc -c
-o/dev/null /build/tmp/u.cpp
typedef int F ();

F foo;

template <F&> struct A { };
A<foo> a;
/build/tmp/u.cpp: In instantiation of ‘struct A<foo>’:
/build/tmp/u.cpp:6:8:   required from here
/build/tmp/u.cpp:5:24: internal compiler error: in retrieve_specialization, at
cp/pt.c:1059
 template <F&> struct A { };
                        ^
0x7919ca retrieve_specialization
        /home/msebor/scm/fsf/gcc-git/gcc/cp/pt.c:1059
0x7c8652 tsubst_decl
        /home/msebor/scm/fsf/gcc-git/gcc/cp/pt.c:11366
0x7ca4ee tsubst(tree_node*, tree_node*, int, tree_node*)
        /home/msebor/scm/fsf/gcc-git/gcc/cp/pt.c:11890
0x7be5e8 instantiate_class_template_1
        /home/msebor/scm/fsf/gcc-git/gcc/cp/pt.c:9458
0x7bf3f2 instantiate_class_template(tree_node*)
        /home/msebor/scm/fsf/gcc-git/gcc/cp/pt.c:9730
0x8b6e76 complete_type(tree_node*)
        /home/msebor/scm/fsf/gcc-git/gcc/cp/typeck.c:139
0x757ac0 start_decl_1(tree_node*, bool)
        /home/msebor/scm/fsf/gcc-git/gcc/cp/decl.c:4903
0x7578c9 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        /home/msebor/scm/fsf/gcc-git/gcc/cp/decl.c:4866
0x883e29 cp_parser_init_declarator
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:17187
0x87af06 cp_parser_simple_declaration
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:11608
0x87acd8 cp_parser_block_declaration
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:11482
0x87aa5b cp_parser_declaration
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:11379
0x87a610 cp_parser_declaration_seq_opt
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:11265
0x86daf3 cp_parser_translation_unit
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:4097
0x8a9ce7 c_parse_file()
        /home/msebor/scm/fsf/gcc-git/gcc/cp/parser.c:33241
0xa25369 c_common_parse_file()
        /home/msebor/scm/fsf/gcc-git/gcc/c-family/c-opts.c:1060
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-489468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 19 20:44:17 2015
Return-Path: <gcc-bugs-return-489468-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 117991 invoked by alias); 19 Jun 2015 20:44:16 -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 117584 invoked by uid 48); 19 Jun 2015 20:44:12 -0000
From: "tps@vr-web.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/66104] svn co https://gcc.gnu.org/svn/gcc/branches/gcc-5-branch/
Date: Fri, 19 Jun 2015 20:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tps@vr-web.de
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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:
Message-ID: <bug-66104-4-abXzImoOGs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66104-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66104-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: 2015-06/txt/msg01800.txt.bz2
Content-length: 489

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf104

--- Comment #1 from Thomas Schweikle <tps@vr-web.de> ---
ERROR: Failed to check out http://gcc.gnu.org/svn/gcc/branches/gcc-5-branch
org.tmatesoft.svn.core.SVNException: svn: E175002: Processing REPORT request
response failed: Elementtyp "D:creator-displayname" muss mit dem entsprechenden
Endtag "</D:creator-displayname>" beendet werden. (/svn/gcc/!svn/vcc/default)
svn: E175002: REPORT request failed on '/svn/gcc/!svn/vcc/default'


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

* [Bug c++/66607] ICE instantiating a template on a function reference
  2015-06-19 20:38 [Bug c++/66607] New: ICE instantiating a template on a function reference msebor at gcc dot gnu.org
@ 2015-06-21  7:52 ` trippels at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-06-21  7:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66607

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

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


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

end of thread, other threads:[~2015-06-21  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 20:38 [Bug c++/66607] New: ICE instantiating a template on a function reference msebor at gcc dot gnu.org
2015-06-21  7:52 ` [Bug c++/66607] " trippels 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).