This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20400] New: m-static test fails to compile


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]