From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18173 invoked by alias); 21 Feb 2015 19:53:45 -0000 Mailing-List: contact overseers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: overseers-owner@sourceware.org Received: (qmail 18164 invoked by uid 89); 21 Feb 2015 19:53:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f174.google.com Received: from mail-ig0-f174.google.com (HELO mail-ig0-f174.google.com) (209.85.213.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 21 Feb 2015 19:53:43 +0000 Received: by mail-ig0-f174.google.com with SMTP id b16so10345129igk.1 for ; Sat, 21 Feb 2015 11:53:41 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.134.103 with SMTP id i100mr4814597iod.90.1424548421259; Sat, 21 Feb 2015 11:53:41 -0800 (PST) Received: by 10.64.15.162 with HTTP; Sat, 21 Feb 2015 11:53:41 -0800 (PST) Date: Sat, 21 Feb 2015 19:53:00 -0000 Message-ID: Subject: GCC Bugzilla Account Creation Restricted From: Brian Curtis To: overseers@gcc.gnu.org Content-Type: multipart/mixed; boundary=001a113ece629e47fd050f9e86e1 X-SW-Source: 2015-q1/txt/msg00076.txt.bz2 --001a113ece629e47fd050f9e86e1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 4856 I would like to report a bug in GCC, but I am unable to create an account with the bug tracker. The bug I would like to report is as described below. Brian SUMMARY: Unable to define a static template member function of a nested class as a friend of a sibling class. EXAMPLE: template class A { public: class B; template class C; }; template class A::B { public: template static void Create(); }; template template class A::C { C() =3D default; friend void B::Create(); }; template template void A::B::Create() { C{}; } int main() { A::B::Create(); } COMPILATION COMMAND: gcc -std=3Dc++ -Wall -Wextra -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations test.cpp -o test DATA COLLECTION COMMAND: gcc -v -save-temps -std=3Dc++11 -Wall -Wextra -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations test.cpp OUTPUT: Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 4.8.2-19ubuntu1' --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 --disable-libmudflap --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-amd64 --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-linux-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++11' '-Wall' '-Wextra' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizations' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1plus -E -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE test.cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dc++11 -Wall -Wextra -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -fpch-preprocess -fstack-protector -Wformat -Wformat-security -o test.ii ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/4.8" ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../x86_64-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/4.8 /usr/include/x86_64-linux-gnu/c++/4.8 /usr/include/c++/4.8/backward /usr/lib/gcc/x86_64-linux-gnu/4.8/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++11' '-Wall' '-Wextra' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizations' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1plus -fpreprocessed test.ii -quiet -dumpbase test.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase test -Wall -Wextra -std=3Dc++11 -version -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -fstack-protector -Wformat -Wformat-security -o test.s GNU C++ (Ubuntu 4.8.2-19ubuntu1) version 4.8.2 (x86_64-linux-gnu) compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++ (Ubuntu 4.8.2-19ubuntu1) version 4.8.2 (x86_64-linux-gnu) compiled by GNU C version 4.8.2, GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 26a7c0bd346d04102f6aea776e0cccc5 test.cpp: In instantiation of =E2=80=98class A::C=E2=80=99: test.cpp:21:3: required from =E2=80=98static void A::B::Create() [with= U =3D char; T =3D int]=E2=80=99 test.cpp:25:27: required from here test.cpp:16:14: error: =E2=80=98Create=E2=80=99 was not declared in this sc= ope friend void B::Create(); ^ --001a113ece629e47fd050f9e86e1 Content-Type: application/octet-stream; name="test.ii" Content-Disposition: attachment; filename="test.ii" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i6ffcbzo0 Content-length: 724 IyAxICJ0ZXN0LmNwcCIKIyAxICI8Y29tbWFuZC1saW5lPiIKIyAxICIvdXNy L2luY2x1ZGUvc3RkYy1wcmVkZWYuaCIgMSAzIDQKIyAxICI8Y29tbWFuZC1s aW5lPiIgMgojIDEgInRlc3QuY3BwIgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4g Y2xhc3MgQSB7CiBwdWJsaWM6CiAgY2xhc3MgQjsKICB0ZW1wbGF0ZSA8dHlw ZW5hbWUgVT4gY2xhc3MgQzsKfTsKCnRlbXBsYXRlIDx0eXBlbmFtZSBUPgpj bGFzcyBBPFQ+OjpCIHsKIHB1YmxpYzoKICB0ZW1wbGF0ZSA8dHlwZW5hbWUg VT4gc3RhdGljIHZvaWQgQ3JlYXRlKCk7Cn07Cgp0ZW1wbGF0ZSA8dHlwZW5h bWUgVD4gdGVtcGxhdGUgPHR5cGVuYW1lIFU+CmNsYXNzIEE8VD46OkMgewog QygpID0gZGVmYXVsdDsKIGZyaWVuZCB2b2lkIEI6OkNyZWF0ZTxVPigpOwp9 OwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+IHRlbXBsYXRlIDx0eXBlbmFtZSBV Pgp2b2lkIEE8VD46OkI6OkNyZWF0ZSgpIHsKICBDPFU+e307Cn0KCmludCBt YWluKCkgewogIEE8aW50Pjo6Qjo6Q3JlYXRlPGNoYXI+KCk7Cn0K --001a113ece629e47fd050f9e86e1--