@@ -175,6 +175,7 @@ <H3>Revision History</H3>
175175<A HREF="cwg_active.html#2905">2905</A>,
176176<A HREF="cwg_active.html#2906">2906</A>,
177177<A HREF="cwg_active.html#2907">2907</A>,
178+ <A HREF="cwg_active.html#2908">2908</A>,
178179</P>
179180
180181<P><B>Revision 114, 2024-04-18:</B></P>
@@ -9037,6 +9038,17 @@ <H3>Issue status</H3>
90379038</TD>
90389039</TR>
90399040<TR>
9041+ <TD ALIGN="LEFT">15.7 
9042+ <A href="https://wg21.link/cpp.line">cpp.line</A>
9043+ </TD>
9044+ <TD ALIGN="RIGHT"><A HREF="#2908">2908</A></TD>
9045+ <TD ALIGN="CENTER">open</TD>
9046+ <TD ALIGN="CENTER"></TD>
9047+ <TD ALIGN="LEFT">
9048+ Counting physical source lines for <TT>__LINE__</TT>
9049+ </TD>
9050+ </TR>
9051+ <TR>
90409052<TD ALIGN="LEFT">15.9 
90419053 <A href="https://wg21.link/cpp.pragma">cpp.pragma</A>
90429054</TD>
@@ -43747,6 +43759,41 @@ <H3>Issue status</H3>
4374743759source file, thus it might be better to use <I>header-name</I>
4374843760(5.8 [<A href="https://wg21.link/lex.header">lex.header</A>]) instead.</P>
4374943761
43762+ <BR><BR><HR>
43763+ <A NAME="2908"></A><H4>2908.
43764+
43765+ Counting physical source lines for <TT>__LINE__</TT>
43766+ </H4>
43767+ <B>Section: </B>15.7  [<A href="https://wg21.link/cpp.line">cpp.line</A>]
43768+    
43769+
43770+ <B>Status: </B>open
43771+    
43772+
43773+ <B>Submitter: </B>Alisdair Meredith
43774+    
43775+
43776+ <B>Date: </B>2024-06-17<BR>
43777+
43778+
43779+
43780+
43781+ <P>Given the existing implementation divergence, it should be
43782+ clarified that <TT>__LINE__</TT> counts physical source lines, not
43783+ logical ones.</P>
43784+
43785+ <P><U>Possible resolution:</U></P>
43786+
43787+ <P>Change in 15.7 [<A href="https://wg21.link/cpp.line#2">cpp.line</A>] paragraph 2 as follows:</P>
43788+ <BLOCKQUOTE>
43789+
43790+ The <I>line number</I> of the current source line is <INS>the line
43791+ number of the current physical source line, i.e. it is</INS> one
43792+ greater than the number of new-line characters read or introduced in
43793+ translation phase 1 (5.2 [<A href="https://wg21.link/lex.phases">lex.phases</A>]) while processing the
43794+ source file to the current token.
43795+
43796+ </BLOCKQUOTE>
4375043797<BR><BR><HR>
4375143798<A NAME="2581"></A><H4>2581.
4375243799
0 commit comments