https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68202

            Bug ID: 68202
           Summary: Missed diagnostic: rvalue reference allowed in
                    exception-specifier
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: andrey.vul at gmail dot com
  Target Milestone: ---

Given the example

// begin a.cpp
template <class ...T> void f(T...) throw (T&&...) { }
int main() {
        f(1, "ab");
}
// end a.cpp

and gcc -v:
Using built-in specs.
COLLECT_GCC=g++-6.0.0-alpha20151101
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.0.0-alpha20151101/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-6.0.0_alpha20151101/work/gcc-6-20151101/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/6.0.0-alpha20151101
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0-alpha20151101/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.0.0-alpha20151101
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.0.0-alpha20151101/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.0.0-alpha20151101/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0-alpha20151101/include/g++-v6
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/6.0.0-alpha20151101/python
--enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 6.0.0_alpha20151101' --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64
--disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj
--enable-libgomp --disable-libmudflap --disable-libssp --enable-libcilkrts
--enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer
--disable-default-pie --enable-default-ssp
Thread model: posix
gcc version 6.0.0-alpha20151101 20151101 (experimental) (Gentoo
6.0.0_alpha20151101) 

a diagnostic is not emitted regarding rvalue reference in exception-specifier,
unlike Clang 3.6+.

Reply via email to