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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced:

$ cat 125595_a.C
export module a;
export inline void f(int __n) { int x[__n] = {}; }

$ g++ -fmodules 125595_a.C
125595_a.C: At global scope:     
125595_a.C:1:8: internal compiler error: in tree_node, at cp/module.cc:10353    
    1 | export module a;
      |        ^~~~~~                                

Seems modules streaming dislikes VLAs (used in std::start_lifetime_as_array
which is used by inplace_vector).

Reply via email to