Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215570 - sci-mathematics/ginac-1.4.1 fais to compile with gcc-4.3
Summary: sci-mathematics/ginac-1.4.1 fais to compile with gcc-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 13:03 UTC by Bert Karwatzki
Modified: 2008-04-01 15:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bert Karwatzki 2008-03-31 13:03:46 UTC
Compiling ginac-1.4.1 with gcc-4.3.0 from portage gives following error:
numeric.cpp:422: error: explicit template specialization cannot have a storage class resolved by patch


Reproducible: Always




This patch solves the problem:
diff -aur ginac.old/numeric.cpp ginac/numeric.cpp
--- ginac.old/numeric.cpp       2008-03-29 16:22:52.000000000 +0100
+++ ginac/numeric.cpp   2008-03-29 17:49:41.000000000 +0100
@@ -408,7 +408,7 @@
  * @sa http://www.ginac.de/pipermail/cln-list/2006-October/000248.html
  */
 template<>
-static inline bool coerce<int, cln::cl_I>(int& dst, const cln::cl_I& arg) 
+inline bool coerce<int, cln::cl_I>(int& dst, const cln::cl_I& arg) 
 {
        static const cln::cl_I cl_max_int =
                (cln::cl_I)(long)(std::numeric_limits<int>::max());
@@ -422,7 +422,7 @@
 }

 template<>
-static inline bool coerce<unsigned int, cln::cl_I>(unsigned int& dst, const cln::cl_I& arg)
+inline bool coerce<unsigned int, cln::cl_I>(unsigned int& dst, const cln::cl_I& arg)
 {
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2008-04-01 12:53:05 UTC
Thanks much for the note + patch. I'll have a look
at it later.

Best,
Markus
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-04-01 15:20:32 UTC
Fixed in portage cvs.

Thanks,
Markus