public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug driver/63837] [5 Regression] r217391 causes kernel build errors with GCC_COMPARE_DEBUG=1
Date: Thu, 13 Nov 2014 09:57:00 -0000 [thread overview]
Message-ID: <bug-63837-4-EUb4OKQ5DP@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-63837-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63837
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Here's a testcase:
markus@x4 tmp % GCC_COMPARE_DEBUG=1 gcc -Wpointer-sign -c -x c /dev/null
cc1: fatal error: input file ‘/dev/null’ is the same as output file
compilation terminated.
gcc: error: during -fcompare-debug recompilation
markus@x4 tmp % GCC_COMPARE_DEBUG=0 gcc -Wpointer-sign -c -x c /dev/null
(4.9 is fine)
markus@x4 tmp % GCC_COMPARE_DEBUG=1 gcc -Wpointer-sign -c -x c /dev/null
markus@x4 tmp %
>From gcc-bugs-return-466632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Nov 13 10:33:47 2014
Return-Path: <gcc-bugs-return-466632-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9177 invoked by alias); 13 Nov 2014 10:33:46 -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 9157 invoked by uid 48); 13 Nov 2014 10:33:42 -0000
From: "reagentoo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/63849] New: [4.9/5.0 Regression] ICE on variadic alias template with wrappers
Date: Thu, 13 Nov 2014 10:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: reagentoo 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-63849-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-11/txt/msg01104.txt.bz2
Content-length: 1698
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc849
Bug ID: 63849
Summary: [4.9/5.0 Regression] ICE on variadic alias template
with wrappers
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reagentoo at gmail dot com
The following invalid (or perhaps invalid, I think) code snippet triggers an
ICE in GCC 4.9.2 and 5.0.0 (20141111):
===============================================template <class _T, class...>
using First = _T; // we should not use this
// alias with only
// one pack parameter (?)
template <template <class...> class _Successor,
int,
class... _Xs>
struct Overlay
{
using O = _Successor<_Xs...>;
};
template <class... _Pack>
struct List
{
template <int _s>
using O = typename Overlay<List, _s, _Pack...>::O;
template <template <class...> class _S>
using Pass = _S<_Pack...>;
template <int _i>
using At = typename O<_i>
::template Pass<First>;
};
template <int _i>
using At = typename List<int, char>
::template At<_i>;
template <int _i>
void func_crash(At<_i>&) {}
int main(int argc, char *argv[])
{
char ccc;
int iii;
func_crash<0>(iii);
}
===============================================GCC 5.0.0 (20141111) output:
prog.cc: In instantiation of 'void func_crash(At<_i>&) [with int _i = 0; At<_i>
= int]':
prog.cc:31:6: internal compiler error: in write_name, at cp/mangle.c:801
void func_crash(At<_i>&) {}
^
next prev parent reply other threads:[~2014-11-13 9:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 18:07 [Bug driver/63837] New: " trippels at gcc dot gnu.org
2014-11-12 23:56 ` [Bug driver/63837] " manu at gcc dot gnu.org
2014-11-13 2:41 ` trippels at gcc dot gnu.org
2014-11-13 2:47 ` pinskia at gcc dot gnu.org
2014-11-13 9:21 ` rguenth at gcc dot gnu.org
2014-11-13 9:57 ` trippels at gcc dot gnu.org [this message]
2014-11-13 13:36 ` manu at gcc dot gnu.org
2014-11-13 13:49 ` trippels at gcc dot gnu.org
2014-11-15 7:11 ` pinskia at gcc dot gnu.org
2014-11-15 11:16 ` manu at gcc dot gnu.org
2014-11-16 22:03 ` trippels at gcc dot gnu.org
2014-11-17 21:24 ` jakub at gcc dot gnu.org
2014-11-19 15:34 ` manu at gcc dot gnu.org
2014-11-19 15:40 ` trippels at gcc dot gnu.org
2014-11-19 16:38 ` jakub at gcc dot gnu.org
2014-11-19 18:12 ` jakub at gcc dot gnu.org
2014-11-19 18:38 ` trippels 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-63837-4-EUb4OKQ5DP@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).