220 39064 <3dd6733f-b195-40a7-9ee8-4d49717c686f@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: bastienpenava@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: __COLUMN__ macro to parallel __LINE__
Date: Tue, 10 Jul 2018 15:48:11 -0700 (PDT)
Lines: 94
Approved: news@gmane.org
Message-ID: <3dd6733f-b195-40a7-9ee8-4d49717c686f@isocpp.org>
References: <29394898-f878-45ad-b21c-b589e4a36caf@isocpp.org> <7b15114a-7a79-4407-8937-bb8d3d6df7f7@isocpp.org>
 <CAPuuy5f1678OKwDdFKV7N2c7RqF1usPDiw7QQXdsBneLfuu05g@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_122464_297903427.1531262891755"
X-Trace: blaine.gmane.org 1531262768 1359 195.159.176.226 (10 Jul 2018 22:46:08 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 10 Jul 2018 22:46:08 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCG3XHNI6IDRBLHPSTNAKGQERUYDW3I@isocpp.org Wed Jul 11 00:46:04 2018
Return-path: <std-proposals+bncBCG3XHNI6IDRBLHPSTNAKGQERUYDW3I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f198.google.com ([209.85.161.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCG3XHNI6IDRBLHPSTNAKGQERUYDW3I@isocpp.org>)
	id 1fd1OU-0000BY-S4
	for gclcip-std-proposals@m.gmane.org; Wed, 11 Jul 2018 00:46:03 +0200
Original-Received: by mail-yw0-f198.google.com with SMTP id i6-v6sf1135896ywd.7
        for <gclcip-std-proposals@m.gmane.org>; Tue, 10 Jul 2018 15:48:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=mc17IHaeepEywNsqI5EsIUUP6AhAHXiXXW5+COs7Qjo=;
        b=WGwnFRjOlOAfuYwGl9fQHlB8VPmpZNMa1invf/AuiJLgUIZuPIyNcmkroNiQKvowB6
         tFEQLBoYBAUdCcXJ52JL4RFg7QuZ1C4Ex09k3zQI4vph2H/pnOD+ZuhvpwYDVNPsSWOQ
         KX7JTrp3sdYG+mfaIH9lwm/a6Ar7mDE2fhMJSMwCa48TSUErb7gMIR9UfeUoFxEzzjFS
         Mqqo0RR0VWoQgAXFBbzxLs6BJPftiwQd2pRFaCDhnAP7ZRzv0u7V+WfTUSVpBbBljpJ9
         F3jPddDpGxL6vsPrppgxzAbHq2Kajedo0SlMYIkCF01iu0Ar36PnRmRERf3qdfc4+Wwp
         huNg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=mc17IHaeepEywNsqI5EsIUUP6AhAHXiXXW5+COs7Qjo=;
        b=sNGLGqCkk+cbASauvnBzgfzkG7nHluX7dBO+BCKiqH5WjKploEFfuyzjulDAT1ntU5
         rJUY+XPndw4y8x94aRH+hqAddGMSyb1vhzboAXyu1TZGxwK/EvPeWmXDMPFNMRrzGgPc
         p6N9MyLBtORrMLbljlOE8WUjVYiklCIdXfI04LPW8fKnBmKBn+ATYWGvCLvv0LMetUpt
         +gpCVXvAQ7gdcROsNcuQSZ7UnPUxyHAF4VwJ7HwL2ajAKvpVR/CzfyZ0XMBhbhnmPGuS
         VRnl8U59bHw0CU+F/M9Mq+C0p/OsbzvX+o2FmrQ8zZgGSn0Y+0L+PxtfKhZcGe461+NX
         1dxQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=mc17IHaeepEywNsqI5EsIUUP6AhAHXiXXW5+COs7Qjo=;
        b=uQglrtkGJMiljlImD28ycTDTN9B/AneD/8w3LNIDlA0JwokMUEaPhcVbs5ivdsqlMs
         hhjRBwhfBfXxzcet48XY0Khpd3i4kIB984Q/vOdIs5VLW0pmY9zbRFB5h6bKrczMwlgx
         oV1Y7SrytYzjNODJoUzXo85u01ePl1XqWZhoMYaPCoPNA7hHx/Bo74VoT8D6zfo+JCme
         IYUakTON5WDkvKPxbgvVgSHi9OtJm6WDk/0wbBt7tQthJZ9gIB9tervPVZO0k9qRuk4/
         JOP4E3RC7LtNojSSeHIjpxez5VnUBRgMULgTuYxS9X1BJ/VknCR2nYQna9SWPtkYtyW5
         cd5A==
X-Gm-Message-State: AOUpUlEu1e1FBxbnaKFSvIz16UbaIQDrszRmuXMy1aTDMsv+thVUuDOP
	tqY6qvlWFIDkIHN7Y5qLUNUm4A==
X-Google-Smtp-Source: AAOMgpdAt1MZSpIUxwRSo5lZRRAFnTuBNkcXm+rpjFTQqpu5amQUS7LzTZTHDy7A2Wk/kfCuwvZVOA==
X-Received: by 2002:a0d:e3c4:: with SMTP id m187-v6mr660533ywe.50.1531262893706;
        Tue, 10 Jul 2018 15:48:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a81:9945:: with SMTP id q66-v6ls543323ywg.6.gmail; Tue, 10
 Jul 2018 15:48:12 -0700 (PDT)
X-Received: by 2002:a81:5705:: with SMTP id l5-v6mr3544696ywb.6.1531262892222;
        Tue, 10 Jul 2018 15:48:12 -0700 (PDT)
In-Reply-To: <CAPuuy5f1678OKwDdFKV7N2c7RqF1usPDiw7QQXdsBneLfuu05g@mail.gmail.com>
X-Original-Sender: BastienPenava@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:39064
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39064>

------=_Part_122464_297903427.1531262891755
Content-Type: multipart/alternative; 
	boundary="----=_Part_122465_1606199565.1531262891755"

------=_Part_122465_1606199565.1531262891755
Content-Type: text/plain; charset="UTF-8"

On Tuesday, July 10, 2018 at 1:01:34 AM UTC+2, Justin Bassett wrote:
>
> I thought this would potentially be easier to get through than reflection 
> and anonymous variables. But it appears not.
>
> Either way tracking the column number would require significant changes to 
>> GCC that they haven't been willing to do so far even though they have 
>> source_location implemented (currently returning 0).
>>
>
> That definitely settles this for me. I feel no need to push this idea 
> further.
>
> Hi,

I'd like to apologize for my remark, I was actually wrong about it 
requiring "significant change".
It requires so much change that I have made fairly quickly a functioning 
implementation and put it on a compiler explorer here:
 http://column.gcc-future.tk/# <http://column.gcc-future.tk/#>
I've also managed to make source_location return a "better value",
the only issue being that the newly created __builtin_COLUMN function 
returns the location of the opening parenthesis of the function call 
instead of the beginning of the function name.
From what I've seen the implementation of source_location was just a patch 
submitted in 2015 that was later (2017) published as is and was only a 
library patch.
That was mostly the point of my comment (little interest shown by the GCC 
team).

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/3dd6733f-b195-40a7-9ee8-4d49717c686f%40isocpp.org.

------=_Part_122465_1606199565.1531262891755
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, July 10, 2018 at 1:01:34 AM UTC+2, Justin Bass=
ett wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left:=
 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"auto"><d=
iv>I thought this would potentially be easier to get through than reflectio=
n and anonymous variables. But it appears not.</div><div dir=3D"auto"><br><=
div class=3D"gmail_quote" dir=3D"auto"><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
dir=3D"ltr"><div>Either way tracking the column number would require signif=
icant changes to GCC that they haven&#39;t been willing to do so far even t=
hough they have source_location implemented (currently returning 0).<br></d=
iv></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"a=
uto"></div><div dir=3D"auto">That definitely settles this for me. I feel no=
 need to push this idea further.</div><div dir=3D"auto"><br></div></div></b=
lockquote><div>Hi,</div><div><br></div><div>I&#39;d like to apologize for m=
y remark, I was actually wrong about it requiring &quot;significant change&=
quot;.</div><div>It requires so much change that I have made fairly quickly=
 a functioning implementation and put it on a compiler explorer here:<a hre=
f=3D"http://column.gcc-future.tk/#">=C2=A0http://column.gcc-future.tk/#</a>=
</div><div>I&#39;ve also managed to make source_location return a &quot;bet=
ter value&quot;,</div><div>the only issue being that the newly created __bu=
iltin_COLUMN function returns the location of the opening parenthesis of th=
e function call instead of the beginning of the function name.<br></div><di=
v>From what I&#39;ve seen the implementation of source_location was just a =
patch submitted in 2015 that was later (2017) published as is and was only =
a library patch.</div><div>That was mostly the point of my comment (little =
interest shown by the GCC team).</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/3dd6733f-b195-40a7-9ee8-4d49717c686f%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/3dd6733f-b195-40a7-9ee8-4d49717c686f=
%40isocpp.org</a>.<br />

------=_Part_122465_1606199565.1531262891755--

------=_Part_122464_297903427.1531262891755--

.
