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

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).