[Bug c++/85847] New: unexpected expression of kind template_id_expr
adrienstalain at hotmail dot fr
gcc-bugzilla@gcc.gnu.org
Sun May 20 04:19:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85847
Bug ID: 85847
Summary: unexpected expression of kind template_id_expr
Product: gcc
Version: 8.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: adrienstalain at hotmail dot fr
Target Milestone: ---
Created attachment 44149
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44149&action=edit
test source
* command to reproduce
$ g++ test.cc
* Compiler output:
```
test.cc: In function ‘void g()’:
test.cc:7:32: internal compiler error: unexpected expression ‘f<int>’ of kind
template_id_expr
auto a = new int[f<int>(2), 2];
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
```
* gcc version 8.1.0 (GCC)
*Target: x86_64-pc-linux-gnu
* Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
More information about the Gcc-bugs
mailing list