From owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org  Tue Aug 25 20:41:45 2026
Return-Path: <owner-sc22wg14+sc22wg14-domo2=www.open-std.org@open-std.org>
X-Original-To: sc22wg14-domo2
Delivered-To: sc22wg14-domo2@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 4DC57356E57; Tue, 25 Aug 2026 20:41:45 +0200 (CEST)
Delivered-To: sc22wg14@open-std.org
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124])
	by www.open-std.org (Postfix) with ESMTP id DB3B0356E40
	for <sc22wg14@open-std.org>; Tue, 25 Aug 2026 20:41:43 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
	s=mimecast20190719; t=1787683302;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type;
	bh=DEQv/rJ+RnTyUe54FI3jnwgkXlU7BV489yfGo3ARVNs=;
	b=AFWZUZOtic0mMUPO2o/W3NNlokkiFJWIS//afHmv1ecYdKLoID6ws8u/ZgrspCpMQqzhj7
	+/KRcZGqkFQ7Ajadhbqv2KjLZ/albv4GFdOuYsLZcozl/pKuQksbqrdN4NRla2cnX38keO
	FE9MBLW4aIcIZZHTk/11tCL6kaor81o=
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com
 [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
 us-mta-10-zK1qRzCcNhms4iwCCrQWZg-1; Tue, 25 Aug 2026 14:41:41 -0400
X-MC-Unique: zK1qRzCcNhms4iwCCrQWZg-1
X-Mimecast-MFC-AGG-ID: zK1qRzCcNhms4iwCCrQWZg_1787683300
Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-47f83999cceso73216f8f.3
        for <sc22wg14@open-std.org>; Tue, 25 Aug 2026 11:41:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1787683299; x=1788288099;
        h=content-type:mime-version:message-id:subject:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=DEQv/rJ+RnTyUe54FI3jnwgkXlU7BV489yfGo3ARVNs=;
        b=FykJOUa+cUEfRdFo2UlW1quqbyx2CHG5B7zRmx5R23F9xfntDeFoUi12RXuN9hp8Yd
         K5s+kxK6GGdORNI1DadJmHLTFIRJ2qnNTDCLbqP0p+T2Uuil/BNQiPdj9kIev037+OaQ
         HbtqbZ4uIPdcmhPme0Yip4xHgdm94vqL7Ew05iQXfxhJ23d2da7cexEKMJxGKxod5ScN
         4OuVJB9dX1vId9FzHFXAQuSyr7drltOEeMQpE5UTHaUI+0X2Na+nPX4QWgkfZty+eFgn
         IBRZ4xQjZLu+FHQFIO5Dv7tmnKmjdEqMtq/dxG2mpxboy5xzVErwcc2dbdwSnMTy3B0e
         spIQ==
X-Gm-Message-State: AFuF++ktdl21lZI5Uxxhnzk8lWCOgHwy/tYbl1RIcHM59lOOLQ4vbu2x
	e6PIzgJnQCXIZ5qDptvp1yXHbU6vWmdlQoxIcrL4ZKcJn2klvTZZp5E4U/VAfelFBGGSahyfw7Y
	qY4lFlGhZliUP+6Vi5MmYvKQ6VHaRoH35Nnuqn4fVAy/10CUp4gZJa+FMhFrN3NjoDgsTZEgLHP
	IGwAKAr1zZzKLZvG6azqIMgtY4lHH2T7W4WQI7UAN+
X-Gm-Gg: AR+sD10QFJDsSpZtdL6e/uJW7d1ztpNj65yUxbuDYykvZgWmv0GVcDrc/3MkNUBLZZT
	DZHthJ8jBcKMxXqCybSzaVnEBKiev5qHQkbQA7sJ3RiCWfEmJFPNCEOI5PwbmqZ1v93DfGKuvno
	kRZ8oG36Z17+lBnaculH/tribnHoYktXzUxnAnpX68cz0k/r8alJ9znYrep8JZNHRT2MBo6PcZf
	d5Fm+UbQkOtuXgVfO420QSgRWTqDvO2ed7j07GOHKDdgEr8tjQ9tMorU81g/WvSIusIGSXGJwQm
	hgIm3EkRWWjc2SsYqowGxZepownmj3b7BvtGx8Zrg879pD9iLsBlbdT/9m9+mZqvOVg19yQ2Q8X
	9c7MFJPZKVjuW9fPpd3TPGiJ48rFlUFE=
X-Received: by 2002:a05:600c:1d1d:b0:499:737c:8a8b with SMTP id 5b1f17b1804b1-499dc81eb1emr10974475e9.12.1787683299635;
        Tue, 25 Aug 2026 11:41:39 -0700 (PDT)
X-Received: by 2002:a05:600c:1d1d:b0:499:737c:8a8b with SMTP id 5b1f17b1804b1-499dc81eb1emr10974085e9.12.1787683299234;
        Tue, 25 Aug 2026 11:41:39 -0700 (PDT)
Received: from digraph.polyomino.org.uk (digraph.polyomino.org.uk. [2001:8b0:bf73:93f7::51bb:e332])
        by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499dcad2532sm1667285e9.11.2026.08.25.11.41.38
        for <sc22wg14@open-std.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 25 Aug 2026 11:41:38 -0700 (PDT)
Received: from jsm28 (helo=localhost)
	by digraph.polyomino.org.uk with local-esmtp (Exim 4.98.2)
	(envelope-from <josmyers@redhat.com>)
	id 1wyw5Z-00000006ZHJ-3adp
	for sc22wg14@open-std.org;
	Tue, 25 Aug 2026 18:41:37 +0000
Date: Tue, 25 Aug 2026 18:41:37 +0000 (UTC)
From: Joseph Myers <josmyers@redhat.com>
To: sc22wg14@open-std.org
Subject: __LINE__ wording (issue 1029)
Message-ID: <cd6e962e-54a2-f619-a377-87818e4cf644@redhat.com>
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: md9ZmhcubqwFz9eulXbS7K6jV7iCSKxpmNiIUzy55CI_1787683300
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=US-ASCII
Sender: owner-sc22wg14@open-std.org
Precedence: bulk

Here is proposed wording for the spelling of __LINE__ (issue 1029).  I 
tried to follow C++ as requested, while staying consistent with wording 
elsewhere in the C standard, where we previously decided to say "excluding 
any digit separators", and using "unsuffixed" as for <stdint.h> constant 
macros although formally redundant with the syntax for decimal-literal 
(but when the wording in <stdint.h> in C99 relied on the fact that 
the syntax for decimal-constant etc. did not include suffixes, that 
confused people).

The following proposed wording is based on C2y draft
[N3886](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3886.pdf);
for C23 (as amended by [issue 1016](issue:1016)), "integer literal"
and "decimal literal" should be read as "integer constant" and
"decimal constant".

Change 6.10.10.2 Mandatory macros:

> `__LINE__` The <del>presumed line number (within the current source
> file) of the current source line (an</del> integer literal <ins>`0`
> or an unsuffixed decimal literal (6.4.5.2),</ins> excluding any
> digit separators<del>)</del><ins>, representing the presumed line
> number of the current source line within the current source
> file</ins>.

-- 
Joseph S. Myers
josmyers@redhat.com

