https://github.com/eisenwave updated https://github.com/llvm/llvm-project/pull/206335
>From b7f8ed714fd1fe753fc17cbf7224cd30943efebf Mon Sep 17 00:00:00 2001 From: Eisenwave <[email protected]> Date: Sun, 28 Jun 2026 15:57:58 +0200 Subject: [PATCH 1/2] [clang] Document CWG3129 as resolved --- clang/www/cxx_dr_status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index ef30b5eefea13..4eaf0c44ab082 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -21720,7 +21720,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td>[<a href="https://wg21.link/lex.fcon">lex.fcon</a>]</td> <td>DR</td> <td>Clarify which <I>floating-point-literal</I>s are valid</td> - <td class="unknown" align="center">Unknown</td> + <td class="full" align="center">Clang 2.7</td> </tr> <tr id="3130"> <td><a href="https://cplusplus.github.io/CWG/issues/3130.html">3130</a></td> >From 33aecf2d4c6d9ffef9bc05eb8b0e58ee4298e9d4 Mon Sep 17 00:00:00 2001 From: Eisenwave <[email protected]> Date: Sun, 28 Jun 2026 16:55:51 +0200 Subject: [PATCH 2/2] Add test, change minimum version to 3.0 --- clang/test/CXX/drs/cwg3129.cpp | 20 ++++++++++++++++++++ clang/www/cxx_dr_status.html | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 clang/test/CXX/drs/cwg3129.cpp diff --git a/clang/test/CXX/drs/cwg3129.cpp b/clang/test/CXX/drs/cwg3129.cpp new file mode 100644 index 0000000000000..f4bfe81389741 --- /dev/null +++ b/clang/test/CXX/drs/cwg3129.cpp @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -std=c++98 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++11 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++14 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++17 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++20 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++23 %s -pedantic-errors -verify=expected +// RUN: %clang_cc1 -std=c++2c %s -pedantic-errors -verify=expected + +namespace cwg3129 { // cwg3129: 3.0 + +float huge_f = 1e10000000000F; // expected-warning {{floating-point constant too large}} +float tiny_f = 1e-1000000000F; // expected-warning {{floating-point constant too small}} + +double huge_d = 1e10000000000; // expected-warning {{floating-point constant too large}} +double tiny_d = 1e-1000000000; // expected-warning {{floating-point constant too small}} + +long double huge_ld = 1e10000000000L; // expected-warning {{floating-point constant too large}} +long double tiny_ld = 1e-1000000000L; // expected-warning {{floating-point constant too small}} + +} // namespace cwg3129 diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 4eaf0c44ab082..9988fcd333e75 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -21720,7 +21720,7 @@ <h2 id="cxxdr">C++ defect report implementation status</h2> <td>[<a href="https://wg21.link/lex.fcon">lex.fcon</a>]</td> <td>DR</td> <td>Clarify which <I>floating-point-literal</I>s are valid</td> - <td class="full" align="center">Clang 2.7</td> + <td class="full" align="center">Clang 3.0</td> </tr> <tr id="3130"> <td><a href="https://cplusplus.github.io/CWG/issues/3130.html">3130</a></td> _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
