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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:1f186f64b8602d74769af4a6250255e51227f744

commit r14-4689-g1f186f64b8602d74769af4a6250255e51227f744
Author: Martin Uecker <uec...@tugraz.at>
Date:   Sat Oct 14 09:09:07 2023 +0200

    c: error for function with external and internal linkage [PR111708]

    Declaring a function with both external and internal linkage
    in the same TU is translation-time UB.  Add an error for this
    case as already done for objects.

            PR c/111708

    gcc/c/ChangeLog:

            * c-decl.cc (grokdeclarator): Add error.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr111708-1.c: New test.
            * gcc.dg/pr111708-2.c: New test.

Reply via email to