http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
Bug #: 57044
Summary: The following code won't compile with -std=c++0x
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: major
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
--- Comment #1 from Piergiorgio Beruto 2013-04-23
10:36:46 UTC ---
Work Around is the following (add an intermediate const variable):
template
inline explicit myclass(T_ *s)
{
const uint32_t sz = mylib::someclass::some_const;
ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
--- Comment #3 from Piergiorgio Beruto 2013-04-23
10:48:19 UTC ---
(In reply to comment #2)
> Please read http://gcc.gnu.org/bugs
>
> Is this really what you're compiling?
> "nemaspace" and "..." should not be there and uint32_t is not
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
--- Comment #5 from Piergiorgio Beruto 2013-04-23
17:04:01 UTC ---
Created attachment 29923
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29923
preprocessed source
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
--- Comment #6 from Piergiorgio Beruto 2013-04-23
17:06:46 UTC ---
Ok, my fault for missing the instructions.
However, I hope to have included everything you need now.
SYSTEM:
Linux sabayon 3.5.0-sabayon #1 SMP Tue Sep 11 08:32:37 UTC 2012 i686
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57044
--- Comment #7 from Piergiorgio Beruto 2013-04-23
17:08:17 UTC ---
Sorry for posting an archive, but the size of the .ii file was too big for
being submitted to bugzilla.