[Bug c++/123189] [16 Regression] ICE in gromacs since r16-6140-g4a718209d448f6

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 19 18:39:00 GMT 2025


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Dhruv Chawla from comment #2)
I'm still seeing an error with older GCC:
123189.C:3:42: error: field ‘c’ has incomplete type
‘{anonymous}::{anonymous}::b<a>’ [-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                          ^
123189.C:3:29: note: definition of ‘class {anonymous}::{anonymous}::b<a>’ is
not complete until the closing brace
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                             ^
123189.C:3:42: error: expected ‘;’ at end of member declaration
[-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                          ^
      |                                           ;
123189.C:3:43: error: expected unqualified-id before ‘<’ token
[-Wtemplate-body]
    3 | template <typename a> class b { friend b c<>() noexcept(a ::d); };
      |                                           ^


More information about the Gcc-bugs mailing list