public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52962] New: Column number incorrect in error
@ 2012-04-12 22:09 xinliangli at gmail dot com
2012-04-12 23:06 ` [Bug c++/52962] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: xinliangli at gmail dot com @ 2012-04-12 22:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Bug #: 52962
Summary: Column number incorrect in error
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: xinliangli@gmail.com
#define M1(x, y, z) y();
#define M2(x, y, z) M1(x, y, z)
void test() {
M2(a, b, c);
}
/* ===== Clang
macros1.cpp:4:9: error: use of undeclared identifier 'b'
M2(a, b, c);
^
macros1.cpp:2:27: note: expanded from macro 'M2'
#define M2(x, y, z) M1(x, y, z)
^
macros1.cpp:1:21: note: expanded from macro 'M1'
#define M1(x, y, z) y();
^
1 error generated.
================ */
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52962] Column number incorrect in error
2012-04-12 22:09 [Bug c++/52962] New: Column number incorrect in error xinliangli at gmail dot com
@ 2012-04-12 23:06 ` pinskia at gcc dot gnu.org
2012-04-12 23:19 ` manu at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-12 23:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-12 23:06:20 UTC ---
That requires tracking of macros.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52962] Column number incorrect in error
2012-04-12 22:09 [Bug c++/52962] New: Column number incorrect in error xinliangli at gmail dot com
2012-04-12 23:06 ` [Bug c++/52962] " pinskia at gcc dot gnu.org
@ 2012-04-12 23:19 ` manu at gcc dot gnu.org
2015-03-29 7:23 ` manu at gcc dot gnu.org
2021-08-02 2:42 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-12 23:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-12 23:19:17 UTC ---
manuel@gcc12:~$ ~/trunk/186353M/build/gcc/cc1plus -ftrack-macro-expansion
pr52962.cc
pr52962.cc:1:23: error: ‘b’ was not declared in this scope
#define M1(x, y, z) y();
^
pr52962.cc:1:23: note: in expansion of macro 'M1'
#define M1(x, y, z) y();
^
pr52962.cc:2:21: note: expanded from here
#define M2(x, y, z) M1(x, y, z)
^
pr52962.cc:2:21: note: in expansion of macro 'M2'
#define M2(x, y, z) M1(x, y, z)
^
pr52962.cc:4:3: note: expanded from here
M2(a, b, c);
^
OK, it needs a bit of fine-tuning, but it is much closer. Nice, eh? ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52962] Column number incorrect in error
2012-04-12 22:09 [Bug c++/52962] New: Column number incorrect in error xinliangli at gmail dot com
2012-04-12 23:06 ` [Bug c++/52962] " pinskia at gcc dot gnu.org
2012-04-12 23:19 ` manu at gcc dot gnu.org
@ 2015-03-29 7:23 ` manu at gcc dot gnu.org
2021-08-02 2:42 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu.org @ 2015-03-29 7:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, easyhack
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-28
Ever confirmed|0 |1
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
This has improved a lot, but it is still better in C than in C++:
manuel@gcc14:~/test2/221743M/build/gcc$ ~/test1/221745M/build/gcc/cc1 ~/test.c
/home/manuel/test.c:4:9: warning: implicit declaration of function ‘b’
[-Wimplicit-function-declaration]
M2(a, b, c);
^
/home/manuel/test.c:1:21: note: in definition of macro ‘M1’
#define M1(x, y, z) y();
^
/home/manuel/test.c:4:3: note: in expansion of macro ‘M2’
M2(a, b, c);
^
manuel@gcc14:~/test2/221743M/build/gcc$ ~/test1/221745M/build/gcc/cc1plus
~/test.c
void test()
/home/manuel/test.c:1:23: error: ‘b’ was not declared in this scope
#define M1(x, y, z) y();
^
/home/manuel/test.c:2:21: note: in expansion of macro ‘M1’
#define M2(x, y, z) M1(x, y, z)
^
/home/manuel/test.c:4:3: note: in expansion of macro ‘M2’
M2(a, b, c);
^
>From gcc-bugs-return-482157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 28 22:17:59 2015
Return-Path: <gcc-bugs-return-482157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 102588 invoked by alias); 28 Mar 2015 22:17:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 102538 invoked by uid 48); 28 Mar 2015 22:17:56 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/17729] [4.8/4.9/5 Regression] Duplicate __attribute__((deprecated)) warning
Date: Sun, 29 Mar 2015 07:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: diagnostic, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P5
X-Bugzilla-Assigned-To: ktietz at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords assigned_to
Message-ID: <bug-17729-4-nSCDJv10pq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-17729-4@http.gcc.gnu.org/bugzilla/>
References: <bug-17729-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg03301.txt.bz2
Content-length: 521
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17729
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Assignee|unassigned at gcc dot gnu.org |ktietz at gcc dot gnu.org
--- Comment #33 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Kai, what happened with your patch?
>From gcc-bugs-return-482158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 28 22:31:08 2015
Return-Path: <gcc-bugs-return-482158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 34139 invoked by alias); 28 Mar 2015 22:31:08 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 34087 invoked by uid 48); 28 Mar 2015 22:31:04 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/65445] Improve [-W...] display for -Wformat
Date: Sun, 29 Mar 2015 09:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic, easyhack
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords
Message-ID: <bug-65445-4-driN2VLGik@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg03302.txt.bz2
Content-length: 579
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65445
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |easyhack
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
This should not be too difficult for someone willing to learn the basics of
awk. I have hacked the scripts a lot and all the awk I know I learnt from the
scripts themselves.
>From gcc-bugs-return-482159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 28 23:15:50 2015
Return-Path: <gcc-bugs-return-482159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 83969 invoked by alias); 28 Mar 2015 23:15:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 83930 invoked by uid 48); 28 Mar 2015 23:15:47 -0000
From: "rogero at howzatt dot demon.co.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64181] 'noexcept' on a lambda sometimes appears to get optimised away at -O2 (or above).
Date: Sun, 29 Mar 2015 11:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rogero at howzatt dot demon.co.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64181-4-4Zh0WpLats@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64181-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64181-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg03303.txt.bz2
Content-length: 188
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd181
--- Comment #1 from Roger Orr <rogero at howzatt dot demon.co.uk> ---
The optimization is also broken in the 5.0 head (5.0.0.20150328)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/52962] Column number incorrect in error
2012-04-12 22:09 [Bug c++/52962] New: Column number incorrect in error xinliangli at gmail dot com
` (2 preceding siblings ...)
2015-03-29 7:23 ` manu at gcc dot gnu.org
@ 2021-08-02 2:42 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-02 2:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52962
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |7.0
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 7+ by r7-4797.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-02 2:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 22:09 [Bug c++/52962] New: Column number incorrect in error xinliangli at gmail dot com
2012-04-12 23:06 ` [Bug c++/52962] " pinskia at gcc dot gnu.org
2012-04-12 23:19 ` manu at gcc dot gnu.org
2015-03-29 7:23 ` manu at gcc dot gnu.org
2021-08-02 2:42 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).