Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537338 - [PATCH] games-action/brainparty-0.61 does not compile with gcc-4.9
Summary: [PATCH] games-action/brainparty-0.61 does not compile with gcc-4.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-22 12:06 UTC by Martin Väth
Modified: 2015-01-23 21:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix default arguments for compatibility with C++ standard (brainparty-gcc-4.9.patch,489 bytes, patch)
2015-01-22 12:06 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2015-01-22 12:06:20 UTC
Created attachment 394600 [details, diff]
Fix default arguments for compatibility with C++ standard

games-action/brainparty-0.61 does not compile with gcc-4.9.

The reason is that the C++ source code specifies a default argument in the instatiation of a template function which is not allowed.
Current gcc versions (at least gcc-4.9, maybe also earlier versions - I did not test) do not allow this deviation from the C++ standard.

I attach a patch which specifies the default argument in the template instead of its instation. This fixes compilation with gcc-4.9, and since it follows the C++ standard, the patch should not cause any issues with earlier versions of gcc.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2015-01-23 21:44:30 UTC
in portage.  thanks for the bug report and patch.