Hi,

Attached is a trivial doc fix, ok for trunk?

Thank you,
--
Giuseppe D'Angelo | [email protected] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - Trusted Software Excellence

From 02b7370ed2e1ff99d9ae870ffd3f99f52e4d92a7 Mon Sep 17 00:00:00 2001
From: Giuseppe D'Angelo <[email protected]>
Date: Tue, 20 Jan 2026 14:58:33 +0100
Subject: [PATCH] doc: fix documentation of -Wsfinae-incomplete [PR123639]

An @item directive was missing, making the documentation appear
incorrectly as part of -Wno-exceptions.

	PR c++/123639

gcc/ChangeLog:

	* doc/invoke.texi: Add @item for -Wsfinae-incomplete.

Signed-off-by: Giuseppe D'Angelo <[email protected]>
---
 gcc/doc/invoke.texi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index b703b531d75..eff886ffe04 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -4566,6 +4566,7 @@ another handler, which can point out a wrong ordering of exception handlers.
 
 @opindex Wsfinae-incomplete
 @opindex Wno-sfinae-incomplete
+@item -Wsfinae-incomplete @r{(C++ and Objective-C++ only)}
 Warn about a class that is found to be incomplete, or a function with
 auto return type that has not yet been deduced, in a context where
 that causes substitution failure rather than an error, and then the
-- 
2.43.0

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to