https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106009

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[modules] internal compiler |[modules] internal compiler
                   |error: in mark_by_value, at |error: in
                   |cp/module.cc:4775           |import_entity_index with
                   |                            |templated local enum in
                   |                            |header unit
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
The mark_by_value ICE is fixed on trunk by r13-3166-gf7f4628054358a I suspect. 
But we now crash from import_entity_index instead.  Reduced reproducer:

$ cat 106009.H
template<class T>
void format_decimal(T) {
  enum blah {};
}

inline void write() {
  format_decimal(0);
}

$ g++ -fmodule-header 106009.H
106009.H: internal compiler error: in import_entity_index, at cp/module.cc:4071

Reply via email to