Bug#157416: cpp-3.2: _Pragma within macros is improperly expanded
Package: cpp-3.2
Version: 1:3.2-0pre4
Severity: important
aps100@cyclone:~$ cat foo.c
_Pragma("foo"); int y;
#define FOO _Pragma("foo"); int x;
FOO
aps100@cyclone:~$ cpp-3.2 foo.c
# 1 "foo.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "foo.c"
# 1 "foo.c"
#pragma foo
# 1 "foo.c"
; int y;
# 3 "foo.c"
#pragma ; int x;foo
The first line is expanded correctly; the third is not (rendering
_Pragma almost completely useless).
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux cyclone 2.4.19 #7 Sat Aug 3 16:06:09 BST 2002 i686
Locale: LANG=C, LC_CTYPE=
Versions of packages cpp-3.2 depends on:
ii gcc-3.2-base 1:3.2-0pre4 The GNU Compiler Collection (base
ii libc6 2.2.5-14 GNU C Library: Shared libraries an
-- no debconf information
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ | Dept. of Computing,
`. `' | Imperial College,
`- -><- | London, UK
Reply to: