This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: A possible bug
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ivo Doko <ivo dot doko at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 7 Oct 2014 13:24:55 +0100
- Subject: Re: A possible bug
- Authentication-results: sourceware.org; auth=none
- References: <54337368 dot 4070407 at gmail dot com> <CAH6eHdRAzuo-dDSft17N04nmw=Ne2ydhp1_bxzReric2ce3j2A at mail dot gmail dot com> <5433B232 dot 6070401 at gmail dot com> <CAH6eHdRYTd77yqFWg2mWOFFdwNp9+8L087VNnBWnnz3zCkUn_w at mail dot gmail dot com> <5433D2D3 dot 4040300 at gmail dot com>
On 7 October 2014 12:47, Ivo Doko wrote:
> On 2014-10-07 12:48, Jonathan Wakely wrote:
> I fail to see where else I am supposed to define these variables for use
> inside the class.
Provide an out-of-class definition.
Please read https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition
more carefully, all the way to the end of that section. Also try
reading the http://www.stroustrup.com/bs_faq2.html#in-class page it
links to.