From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23775 invoked by alias); 14 Jan 2014 16:00:19 -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 23716 invoked by uid 48); 14 Jan 2014 16:00:15 -0000 From: "jorenheit at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59809] New: template non-type parameter in nested class-template said not be declared Date: Tue, 14 Jan 2014 16:00: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.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: jorenheit 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: 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-01/txt/msg01478.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59809 Bug ID: 59809 Summary: template non-type parameter in nested class-template said not be declared Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorenheit at gmail dot com The following code results in a compiler error on GCC 4.7.2: gccbug.cc:8:15: error: =E2=80=98V=E2=80=99 was not declared in this scope Code: // ----------------------- // gccbug.cc template struct S { template struct Inner { int a{V}; }; }; // ----------------------- Output of gcc -v: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Debian 4.7.2-5' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=3Dc,c++,go,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.7 --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 --enable-objc-gc --with-arch-32=3Di586 --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linu= x-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5)=20 Command that triggers the error: g++ --std=3Dc++11 -c gccbug.cc This might be related to bug 57239. >>From gcc-bugs-return-440337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jan 14 16:08:01 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28045 invoked by alias); 14 Jan 2014 16:08:00 -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 27638 invoked by uid 48); 14 Jan 2014 16:07:55 -0000 From: "belagod at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59810] New: [AArch64] LDn/STn implementations are not ABI-conformant for bigendian. Date: Tue, 14 Jan 2014 16:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: belagod at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-01/txt/msg01479.txt.bz2 Content-length: 1217 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59810 Bug ID: 59810 Summary: [AArch64] LDn/STn implementations are not ABI-conformant for bigendian. Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: belagod at gcc dot gnu.org Permuted loads/stores implemented in the aarch64 backend do not conform to AArch64 ABI for bigendian. The ABI states that "... On a little endian system this means that element 0 will always contain the lowest addressed element of a short vector; on a big endian system element 0 will contain the highest addressed element of a short vector." In the implementations of vec_loadlanes and vec_storelanes in aarch64-simd.md, they are just loaded lane-wise for both endianness. This may be correct for little endian, but for bigendian, this is the reversed order. Because the architecture does not offer a way to perform opaque loads/stores(LDR q, STR q) for permuted loads, the lanes will need to be reversed after permuted loading and reversed before permuted storing.