[Bug c++/106740] Internal compiler error: Segmentation fault
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 25 13:37:58 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106740
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat ice.ii
template <typename> struct EnumClass { friend int toString(EnumClass); };
struct AmhsConvInfoCoFw {
enum AftnTypeXMsgTypeEnum {};
typedef EnumClass<AftnTypeXMsgTypeEnum> AftnTypeXMsgType;
const int getAftnTypeXMsgTypeAsStr() const;
struct MtcuAxgwInfo {
AftnTypeXMsgType mAftnTypeXMsgType;
};
};
const int AmhsConvInfoCoFw::getAftnTypeXMsgTypeAsStr() const {
MtcuAxgwInfo __trans_tmp_1;
toString(__trans_tmp_1.mAftnTypeXMsgType);
return 0;
}
int toString(AmhsConvInfoCoFw::AftnTypeXMsgType);
More information about the Gcc-bugs
mailing list