This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/20400] New: m-static test 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:52:47 +0000
- Subject: [Bug c++/20400] New: m-static test fails to compile
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20400
Bug ID: 20400
Summary: m-static test 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, In file included from
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/m-static.cc:79:0:
/home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.cp/m-static.h:9:34:
error: 'constexpr' needed for in-class initialization of static data member
'const float gnu_obj_4::somewhere' of non-integral type [-fpermissive]
static const float somewhere = 3.14159;
^~~~~~~
This is with the Fedora 24 system gcc.
--
You are receiving this mail because:
You are on the CC list for the bug.