This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/48532] Wrong location of namespaced pragma involving macros
- From: "dodji at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 6 Jun 2011 11:33:49 +0000
- Subject: [Bug preprocessor/48532] Wrong location of namespaced pragma involving macros
- Auto-submitted: auto-generated
- References: <bug-48532-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48532
--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-06-06 11:33:45 UTC ---
Author: dodji
Date: Mon Jun 6 11:33:42 2011
New Revision: 174694
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174694
Log:
PR preprocessor/48532
libcpp/
* directives.c (do_pragma): Don't forget the invocation location
when parsing the pragma name of a namespaced pragma directive.
gcc/testsuite/
* gcc.dg/cpp/pragma-3.c: New test case.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pragma-3.c
Modified:
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c