This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/39573] Linking fails on AMD with -march=native and -fopenmp, works with generic x86_64
- From: "fpbeekhof at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2009 08:16:48 -0000
- Subject: [Bug target/39573] Linking fails on AMD with -march=native and -fopenmp, works with generic x86_64
- References: <bug-39573-14973@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from fpbeekhof at gmail dot com 2009-04-05 08:16 -------
Ok, this was the original code that fails
// Prepare points of cube relative to point in matrix.
typename iPoint3D::value_type offset [8] [3] = {
{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1},
{0, 1, 0}, {1, 1, 0}, {1, 1, 1}, {0, 1, 1} };
After adding "const", it is fine!
// Prepare points of cube relative to point in matrix.
const typename iPoint3D::value_type offset [8] [3] = {
{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1},
{0, 1, 0}, {1, 1, 0}, {1, 1, 1}, {0, 1, 1} };
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39573