This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/20399] New: casts.cc test case fails to compile
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 22 Jul 2016 17:51:07 +0000
- Subject: [Bug c++/20399] New: casts.cc test case fails to compile
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20399
Bug ID: 20399
Summary: casts.cc test case fails to compile
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I noticed this when running some tests:
gdb compile failed,
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/casts.cc:40:10:
error: expected primary-expression before 'int'
decltype(int x)
^~~
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/casts.cc:40:10:
error: expected ')' before 'int'
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/casts.cc:40:1:
error: expected unqualified-id before 'decltype'
decltype(int x)
^~~~~~~~
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/casts.cc:
In function 'int main(int, char**)':
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/casts.cc:59:14:
error: expected primary-expression before 'decltype'
double y = decltype(2);
^~~~~~~~
Maybe this needs a specific -std= option.
Or maybe this odd bit can just be removed without too much harm.
--
You are receiving this mail because:
You are on the CC list for the bug.