public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59809] New: template non-type parameter in nested class-template said not be declared
@ 2014-01-14 16:00 jorenheit at gmail dot com
  2014-05-11 14:15 ` [Bug c++/59809] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jorenheit at gmail dot com @ 2014-01-14 16:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59809

            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: ‘V’ was not declared in this scope

Code:

// -----------------------
// gccbug.cc
template <typename T>
struct S
{
    template <int V>
    struct Inner
    {
        int a{V};
    };
};
// -----------------------

Output of gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5) 

Command that triggers the error:
g++ --std=c++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: <gcc-bugs-return-440337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <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 27638 invoked by uid 48); 14 Jan 2014 16:07:55 -0000
From: "belagod at gcc dot gnu.org" <gcc-bugzilla@gcc.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: <bug-59810-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-01/txt/msg01479.txt.bz2
Content-length: 1217

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY810

            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.


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

* [Bug c++/59809] template non-type parameter in nested class-template said not be declared
  2014-01-14 16:00 [Bug c++/59809] New: template non-type parameter in nested class-template said not be declared jorenheit at gmail dot com
@ 2014-05-11 14:15 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-05-11 14:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59809

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup.

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


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

end of thread, other threads:[~2014-05-11 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 16:00 [Bug c++/59809] New: template non-type parameter in nested class-template said not be declared jorenheit at gmail dot com
2014-05-11 14:15 ` [Bug c++/59809] " paolo.carlini at oracle dot com

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).