aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorMartin Uecker <uecker@tugraz.at>2023-10-14 09:09:07 +0200
committerMartin Uecker <uecker@tugraz.at>2023-10-17 20:19:12 +0200
commit1f186f64b8602d74769af4a6250255e51227f744 (patch)
tree104d609b11947646efcf8d66e0734b2027448d6a /gcc/cp/constexpr.cc
parent5ac63ec5da2e93226457bea4dbb3a4f78d5d82c2 (diff)
downloadgcc-1f186f64b8602d74769af4a6250255e51227f744.zip
gcc-1f186f64b8602d74769af4a6250255e51227f744.tar.gz
gcc-1f186f64b8602d74769af4a6250255e51227f744.tar.bz2
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.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions