[Bug c++/89331] New: internal compiler error: in build_simple_base_path, at cp/class.c:589

stsp at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Wed Feb 13 11:25:00 GMT 2019


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

            Bug ID: 89331
           Summary: internal compiler error: in build_simple_base_path, at
                    cp/class.c:589
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

#include <cstddef>

class A {
public:
    char a;
};

class B : public A {
public:
    static constexpr size_t b = offsetof(B, a);
};


$ c++ -Wall -c overl.cpp 
In file included from /usr/include/c++/8/cstddef:50,
                 from overl.cpp:1:
overl.cpp:10:41: internal compiler error: in build_simple_base_path, at
cp/class.c:589
 static constexpr size_t b = offsetof(B, a);
                                         ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.


More information about the Gcc-bugs mailing list