From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10270 invoked by alias); 8 Nov 2013 00:41:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10217 invoked by uid 48); 8 Nov 2013 00:41:24 -0000 From: "decaluwe.t at gmail dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: decaluwe.t 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 attachments.created Message-ID: 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: 2013-11/txt/msg00672.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59044 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=3D31180&action=3Dedit 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 C { private: template struct Implementation; template struct Implementation<0, b> { typedef void Typedef; }; public: typedef typename Implementation<0, 0>::Typedef Type; }; template class C; /* ---------------------------------------------------- */ 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 =E2=80=98class C=E2=80=99: 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)=20 System type: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu/Linaro 4.8.1-10ubuntu8' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=3Dc,c++,java,go,d,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.8 --enable-shared --enable-linker-build-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.8 --libdir=3D/usr/lib --enable-= nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-gnu-unique-object --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=3Dgtk --enable-gtk-cairo --with-java-home=3D/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64= /jre --enable-java-home --with-jvm-root-dir=3D/usr/lib/jvm/java-1.5.0-gcj-4.8-am= d64 --with-jvm-jar-dir=3D/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=3Damd64 --with-ecj-jar=3D/usr/share/java/eclipse-ecj.= jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=3Di686 --with-abi=3Dm64 --with-multilib-list=3Dm32,m64,mx32 --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_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: 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: List-Archive: List-Post: List-Help: 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" 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: In-Reply-To: References: 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?id=56764 --- 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=204557&root=gcc&view=rev Log: 2013-11-07 Cong Hou Backport from mainline 2013-11-07 Cong Hou 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 Backport from mainline 2013-11-07 Cong Hou * 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