Skip to content

Commit

Permalink
Add workaround for gcc 10 internal compiler error
Browse files Browse the repository at this point in the history
There is a regression in recent gcc (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241),
that make IGC fail to compile:
In file included from /home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/Models.cpp:7:
/home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:1258:34:   in ‘constexpr’ expansion of ‘iga::Field(((const char*)"MathFC"), 24, 4)’
/home/tab/dev/external/oneapi/igc/visa/iga/IGALibrary/Models/bxml/Model7P5.hpp:2085:5: internal compiler error: in tree_to_uhwi, at tree.h:4519
 2085 |     };
      |     ^
  • Loading branch information
8tab committed May 21, 2020
1 parent 92e9ebd commit f4efb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visa/iga/IGALibrary/Backend/Native/Field.hpp
Expand Up @@ -150,8 +150,8 @@ namespace iga
// a simple encoded field (single contiguous)
constexpr Field(const char *_name, int offset, int length)
: name(_name)
, fragments{Fragment(_name, offset, length)}
{
fragments[0] = Fragment(_name, offset, length);
}
// a zero fill field or must-be-zero field
constexpr Field(const char *_name, int length,
Expand Down

0 comments on commit f4efb15

Please sign in to comment.