public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "juchem at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62276] New: ICE when non-variadic template template parameter is default argument of variadic template template parameter
Date: Tue, 26 Aug 2014 23:26:00 -0000	[thread overview]
Message-ID: <bug-62276-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 62276
           Summary: ICE when non-variadic template template parameter is
                    default argument of variadic template template
                    parameter
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juchem at gmail dot com

Created attachment 33399
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33399&action=edit
preprocessed source

The code below will result in an internal compiler error on gcc 4.9.0, 4.8.1
and 4.7.3. Tested in Debian sid (aug/2014), http://gcc.godbolt.org/ and
http://ideone.com.

template <typename T> using bar = T;

template <template <typename...> class F = bar>
void foo() {}

int main() { foo(); }

output:
$ g++-4.9 -std=c++11 ice.cpp
ice.cpp: In instantiation of ‘void foo() [with F = bar]’:
ice.cpp:6:18:   required from here
ice.cpp:4:6: internal compiler error: in write_name, at cp/mangle.c:800
 void foo() {}
      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccKK6fS1.out file, please attach this to
your bugreport.
>From gcc-bugs-return-459320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 26 23:31:01 2014
Return-Path: <gcc-bugs-return-459320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6354 invoked by alias); 26 Aug 2014 23:31:01 -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 6334 invoked by uid 48); 26 Aug 2014 23:30:57 -0000
From: "juchem at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/62274] [C++11] Variadic templates expansion into non-variadic class template
Date: Tue, 26 Aug 2014 23:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: juchem at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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-62274-4-nbAgb9Y2oR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-62274-4@http.gcc.gnu.org/bugzilla/>
References: <bug-62274-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-08/txt/msg01817.txt.bz2
Content-length: 438

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

--- Comment #1 from juchem at gmail dot com ---
Scratch the list of compilers tested (copy pasto). This is the actual compiler
I tested on:

$ g++ --version
g++ (Debian 4.9.1-9) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


             reply	other threads:[~2014-08-26 23:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 23:26 juchem at gmail dot com [this message]
2014-08-26 23:31 ` [Bug c++/62276] " juchem at gmail dot com
2014-12-13 23:54 ` ville.voutilainen at gmail dot com
2015-01-16 17:05 ` paolo.carlini at oracle dot com
2015-01-16 17:11 ` paolo at gcc dot gnu.org
2015-01-16 17:12 ` paolo.carlini at oracle dot com

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-62276-4@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).