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);

Reply via email to