This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: static-const-integral in-class-init without explicit definition
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: RaJ M <smrajagopal at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 21 Sep 2014 12:03:18 +0100
- Subject: Re: static-const-integral in-class-init without explicit definition
- Authentication-results: sourceware.org; auth=none
- References: <CADi59x3Yz1oh6pwYKfiRZoMgigVLvy=ZjVU-W1mm1zacY+Y_KQ at mail dot gmail dot com>
GCC supports it because it is valid C++, but see
https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition
for details of when a definition is needed.