public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "decaluwe.t at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59044] New: Internal compiler error triggers when accessing a typedef in a specialized member class
Date: Fri, 08 Nov 2013 00:41:00 -0000 [thread overview]
Message-ID: <bug-59044-4@http.gcc.gnu.org/bugzilla/> (raw)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59044
Bug ID: 59044
Summary: Internal compiler error triggers when accessing a
typedef in a specialized member class
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: decaluwe.t at gmail dot com
Created attachment 31180
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31180&action=edit
Preprocessor output
The following code triggers an internal compiler error when compiled with 'g++
bug.cpp' (the complete preprocessed file can be found in the attachment):
/* ---- bug.cpp --------------------------------------- */
template <class T>
class C {
private:
template <T a, T b>
struct Implementation;
template <T b>
struct Implementation<0, b> { typedef void Typedef; };
public:
typedef typename Implementation<0, 0>::Typedef Type;
};
template class C<unsigned>;
/* ---------------------------------------------------- */
The error message produced by g++ 4.8.1 (as found in the g++-4.8 package in the
Ubuntu 13.10 repo, see below for build information):
bug.cpp: In instantiation of ‘class C<unsigned int>’:
bug.cpp:12:16: required from here
bug.cpp:9:52: internal compiler error: in tsubst, at cp/pt.c:11313
typedef typename Implementation<0, 0>::Typedef Type;
^
This bug is still present in the gcc-snapshot package. However the code
compiles fine in g++ 4.7.3 (as found in the g++-4.7 package).
Additional information:
GCC version: gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8)
System type: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.8.1-10ubuntu8' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
>From gcc-bugs-return-433896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 08 02:08:12 2013
Return-Path: <gcc-bugs-return-433896-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12932 invoked by alias); 8 Nov 2013 02:08:12 -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 12897 invoked by uid 55); 8 Nov 2013 02:08:08 -0000
From: "congh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/56764] vect_prune_runtime_alias_test_list not smart enough
Date: Fri, 08 Nov 2013 02:08: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: 4.8.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: congh 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56764-4-Ykx0RSdBBg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56764-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56764-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: 2013-11/txt/msg00673.txt.bz2
Content-length: 1260
http://gcc.gnu.org/bugzilla/show_bug.cgi?idV764
--- Comment #4 from congh at gcc dot gnu.org ---
Author: congh
Date: Fri Nov 8 02:08:05 2013
New Revision: 204557
URL: http://gcc.gnu.org/viewcvs?rev 4557&root=gcc&view=rev
Log:
2013-11-07 Cong Hou <congh@google.com>
Backport from mainline
2013-11-07 Cong Hou <congh@google.com>
PR tree-optimization/56764
* tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
Combine alias checks if it is possible to amortize the runtime
overhead. Return the number of alias checks after merging.
* tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
Use the function vect_create_cond_for_alias_checks () to check
the number of alias checks.
2013-11-07 Cong Hou <congh@google.com>
Backport from mainline
2013-11-07 Cong Hou <congh@google.com>
* gcc.dg/vect/vect-alias-check.c: New.
Added:
branches/google/gcc-4_8/gcc/testsuite/gcc.dg/vect/vect-alias-check.c
Modified:
branches/google/gcc-4_8/gcc/ChangeLog
branches/google/gcc-4_8/gcc/testsuite/ChangeLog
branches/google/gcc-4_8/gcc/tree-vect-data-refs.c
branches/google/gcc-4_8/gcc/tree-vect-loop-manip.c
branches/google/gcc-4_8/gcc/tree-vectorizer.h
next reply other threads:[~2013-11-08 0:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 0:41 decaluwe.t at gmail dot com [this message]
2013-11-08 9:45 ` [Bug c++/59044] [4.8/4.9 Regression] " paolo.carlini at oracle dot com
2013-11-08 15:01 ` decaluwe.t at gmail dot com
2013-11-08 15:19 ` paolo.carlini at oracle dot com
2013-11-08 15:32 ` decaluwe.t at gmail dot com
2013-11-19 9:52 ` rguenth at gcc dot gnu.org
2013-12-05 19:15 ` jason at gcc dot gnu.org
2013-12-05 19:15 ` jason at gcc dot gnu.org
2013-12-05 22:46 ` jason at gcc dot gnu.org
2013-12-05 23:28 ` jason at gcc dot gnu.org
2013-12-06 23:52 ` reichelt at gcc dot gnu.org
2014-01-03 3:30 ` jason 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-59044-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).