https://gcc.gnu.org/g:3f2ff7b106b2de44839979f622c669155bdb340a

commit r16-2602-g3f2ff7b106b2de44839979f622c669155bdb340a
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Tue Jul 29 21:20:03 2025 +1000

    testsuite: Fix C++14 test failure with modules test [PR121285]
    
    I hadn't validated this test worked in C++14 before submitting, fixed
    thusly.
    
            PR testsuite/121285
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/modules/class-11_a.H: Make static_asserts valid for
            C++14.
    
    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>

Diff:
---
 gcc/testsuite/g++.dg/modules/class-11_a.H | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/modules/class-11_a.H 
b/gcc/testsuite/g++.dg/modules/class-11_a.H
index f7bbf9d15061..799dbdd733c1 100644
--- a/gcc/testsuite/g++.dg/modules/class-11_a.H
+++ b/gcc/testsuite/g++.dg/modules/class-11_a.H
@@ -20,7 +20,7 @@ struct pr106381 {
 struct L1 : pr106381 {
   char x;  // { dg-warning "offset" "" { target c++14 } }
 };
-static_assert(sizeof(L1) == sizeof(pr106381));
+static_assert(sizeof(L1) == sizeof(pr106381), "");
 
 
 struct pr120012 {
@@ -33,4 +33,4 @@ struct pr120012 {
 struct L2 : pr120012 {
   unsigned char y;  // { dg-warning "offset" "" { target c++20 } }
 };
-static_assert(sizeof(L2) > sizeof(pr120012));
+static_assert(sizeof(L2) > sizeof(pr120012), "");

Reply via email to