This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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++/71534] Initializing a static constexpr data member of a base class by using a static constexpr data member of a derived class should be an error


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

bogdan <inadgob at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |inadgob at yahoo dot com

--- Comment #3 from bogdan <inadgob at yahoo dot com> ---
Following the adoption of P0386R2 into the working draft, the declaration of
bar is now a definition, because bar is an inline variable.

This makes GCC's behaviour standard-conforming in C++1z mode as far as I can
tell. However, I think a fix should still be applied to C++14 and 11 modes, in
the interest of portability.

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