public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63730] New: C++11 ICE REGRESSION mangling template alias into function template
@ 2014-11-04  4:29 eric.niebler at gmail dot com
  2014-11-04 20:13 ` [Bug c++/63730] " daniel.kruegler at googlemail dot com
  2014-11-25 22:24 ` jason at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: eric.niebler at gmail dot com @ 2014-11-04  4:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63730
           Summary: C++11 ICE REGRESSION mangling template alias into
                    function template
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric.niebler at gmail dot com

Compile this:

  template <class T>
  using identity_t = T;

  template <template <class> class It>
  void test() {
  }

  int main() {
    test<identity_t>();
  }

For me, with gcc 4.9.2, command-line "g++ -std=gnu++11 -c test.cpp", I get:

test.cpp: In instantiation of ‘void test() [with It = identity_t]’:
test.cpp:12:22:   required from here
test.cpp:6:6: internal compiler error: in write_name, at cp/mangle.c:800
 void test()
      ^

test.cpp:6:6: internal compiler error: Aborted
g++: internal compiler error: Aborted (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


It worked on gcc 4.9.0, but started failing in 4.9.1.
>From gcc-bugs-return-465690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 04 07:49:24 2014
Return-Path: <gcc-bugs-return-465690-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8419 invoked by alias); 4 Nov 2014 07:49:23 -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 8399 invoked by uid 48); 4 Nov 2014 07:49:18 -0000
From: "simon at pushface dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/42618] Problem reading discriminated values from streams
Date: Tue, 04 Nov 2014 07:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 4.4.2
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: simon at pushface dot org
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-42618-4-oJDuQSHrmG@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-42618-4@http.gcc.gnu.org/bugzilla/>
References: <bug-42618-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/msg00162.txt.bz2
Content-length: 158

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

--- Comment #3 from simon at pushface dot org ---
This is fixed in 4.9.1 (x86_64-apple-darwin13). Close?


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

* [Bug c++/63730] C++11 ICE REGRESSION mangling template alias into function template
  2014-11-04  4:29 [Bug c++/63730] New: C++11 ICE REGRESSION mangling template alias into function template eric.niebler at gmail dot com
@ 2014-11-04 20:13 ` daniel.kruegler at googlemail dot com
  2014-11-25 22:24 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2014-11-04 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The same problem exists for gcc HEAD 5.0.0 20141104 (experimental)
>From gcc-bugs-return-465743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 04 20:18:08 2014
Return-Path: <gcc-bugs-return-465743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17720 invoked by alias); 4 Nov 2014 20:18:08 -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 17677 invoked by uid 48); 4 Nov 2014 20:18:04 -0000
From: "glisse at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/63738] [4.9/5 Regression] ssa corruption when compiled with -O3
Date: Tue, 04 Nov 2014 20:18:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: glisse 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: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-63738-4-ES2Y1NYUyM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63738-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63738-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00215.txt.bz2
Content-length: 1585

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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[5 Regression] ssa          |[4.9/5 Regression] ssa
                   |corruption when compiled    |corruption when compiled
                   |with -O3                    |with -O3

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Actually no, this isn't related to my clobber patch, I can reproduce with 4.9.


// gcc bug.c -c -O3 -std=gnu99
typedef long __jmp_buf[8];

typedef struct
  {
    unsigned long int __val[16];
  } __sigset_t;

struct __jmp_buf_tag
  {

    __jmp_buf __jmpbuf;
    int __mask_was_saved;
    __sigset_t __saved_mask;
  };

typedef struct __jmp_buf_tag jmp_buf[1];

extern int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__
((__nothrow__));

struct longjmp_buffer {
  jmp_buf buf;
};

void plouf();

extern long interprete()
{
  long * sp;

  struct longjmp_buffer raise_buf;
  _setjmp (raise_buf.buf);

  plouf();
  sp -= 4;
  int n;
  long * args;
  for (int i = 0; i < n; i++)
    args[i] = sp[10-i];
  plouf();
  return 0;
}



$ gcc bug.c -c -O3 -std=gnu99                    

Unable to coalesce ssa_names 2 and 12 which are marked as MUST COALESCE.
sp_2(ab) and  sp_12(ab)
bug.c: In function ‘interprete’:
bug.c:27:13: internal compiler error: SSA corruption
 extern long interprete()
             ^
>From gcc-bugs-return-465744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 04 20:34:22 2014
Return-Path: <gcc-bugs-return-465744-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25697 invoked by alias); 4 Nov 2014 20:34:21 -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 25674 invoked by uid 48); 4 Nov 2014 20:34:18 -0000
From: "aaro.koskinen at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/63740] New: GCC 4.9.2 bootstrap fails on ARM, haifa-sched.c:6507:1: internal compiler error: in lra_create
Date: Tue, 04 Nov 2014 20:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: aaro.koskinen at iki dot fi
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-63740-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/msg00216.txt.bz2
Content-length: 3168

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

            Bug ID: 63740
           Summary: GCC 4.9.2 bootstrap fails on ARM,
                    haifa-sched.c:6507:1: internal compiler error: in
                    lra_create
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aaro.koskinen at iki dot fi

GCC 4.9.2 native bootstrap on ARM fails with ICE from the second stage
compiler:

/home/aaro/gcctest/build/./prev-gcc/xg++ -B/home/aaro/gcctest/build/./prev-gcc/
-B/usr/local/arm-unknown-linux-gnueabi/bin/ -nostdinc++
-B/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-B/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs

-I/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/include/arm-unknown-linux-gnueabi
 -I/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/include
 -I/home/aaro/gcctest/gcc-4.9.2/libstdc++-v3/libsupc++
-L/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-L/home/aaro/gcctest/build/prev-arm-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I.
-I../../gcc-4.9.2/gcc -I../../gcc-4.9.2/gcc/. -I../../gcc-4.9.2/gcc/../include
-I../../gcc-4.9.2/gcc/../libcpp/include  -I../../gcc-4.9.2/gcc/../libdecnumber
-I../../gcc-4.9.2/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../gcc-4.9.2/gcc/../libbacktrace    -o haifa-sched.o -MT haifa-sched.o
-MMD -MP -MF ./.deps/haifa-sched.TPo ../../gcc-4.9.2/gcc/haifa-sched.c
../../gcc-4.9.2/gcc/haifa-sched.c: In function 'bool
schedule_block(basic_block_def**, state_t)':
../../gcc-4.9.2/gcc/haifa-sched.c:6507:1: internal compiler error: in
lra_create_copy, at lra.c:1532
 }
 ^
0x8a2ac7 lra_create_copy(int, int, int)
        ../../gcc-4.9.2/gcc/lra.c:1532
0x8cbaaf process_bb_lives
        ../../gcc-4.9.2/gcc/lra-lives.c:568
0x8cd583 lra_create_live_ranges(bool)
        ../../gcc-4.9.2/gcc/lra-lives.c:1008
0x8a51ef lra(_IO_FILE*)
        ../../gcc-4.9.2/gcc/lra.c:2372
0x83df07 do_reload
        ../../gcc-4.9.2/gcc/ira.c:5457
0x83e35b rest_of_handle_reload
        ../../gcc-4.9.2/gcc/ira.c:5598
0x83e3d3 execute
        ../../gcc-4.9.2/gcc/ira.c:5627
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.

The host GCC is 4.9.2 (cross-compiled on x86_64 using GCC 4.9.2).

Configure command for bootstrap was:

$ ../gcc-4.9.2/configure --with-arch=armv4t --with-float=soft --disable-nls
--enable-languages=c,c++ --host=arm-unknown-linux-gnueabi
--build=arm-unknown-linux-gnueabi --target=arm-unknown-linux-gnueabi
--with-system-zlib --with-sysroot=/ --disable-static --enable-shared


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

* [Bug c++/63730] C++11 ICE REGRESSION mangling template alias into function template
  2014-11-04  4:29 [Bug c++/63730] New: C++11 ICE REGRESSION mangling template alias into function template eric.niebler at gmail dot com
  2014-11-04 20:13 ` [Bug c++/63730] " daniel.kruegler at googlemail dot com
@ 2014-11-25 22:24 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2014-11-25 22:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
This is the same issue as 63849, which I've fixed for 4.9.3/5.0.  But a much
smaller testcase.

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


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

end of thread, other threads:[~2014-11-25 22:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-04  4:29 [Bug c++/63730] New: C++11 ICE REGRESSION mangling template alias into function template eric.niebler at gmail dot com
2014-11-04 20:13 ` [Bug c++/63730] " daniel.kruegler at googlemail dot com
2014-11-25 22:24 ` jason 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).