public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2471] New: limited functionality of macro __CONCAT()
@ 2006-03-20 21:54 Petr dot Salinger at seznam dot cz
2006-03-20 21:55 ` [Bug libc/2471] " Petr dot Salinger at seznam dot cz
2006-04-01 19:16 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: Petr dot Salinger at seznam dot cz @ 2006-03-20 21:54 UTC (permalink / raw)
To: glibc-bugs
Hi,
current definition of macro __CONCAT() is limited, it does not allow to pass
__CONCAT()
as direct argument of __CONCAT(). The behaviour can be shown by "gcc -E in.c" on
#define __CONCAT1(x,y) x ## y
#define __CONCATN(x,y) __CONCAT1(x,y)
__CONCAT1(First,__CONCAT1(Second,Third))
__CONCATN(First,__CONCATN(Second,Third))
Result of first test is First__CONCAT1(Second,Third), which is correct
behaviour of preprocessor , because "if an argument is stringified or
concatenated, the prescan does not occur".
But intuitively expected behaviour of __CONCAT() would be same as result of
second test - FirstSecondThird.
Please, could you allow chaining of __CONCAT() via atached patch ?
Thanks
Petr
--
Summary: limited functionality of macro __CONCAT()
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: Petr dot Salinger at seznam dot cz
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2471
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-01 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-20 21:54 [Bug libc/2471] New: limited functionality of macro __CONCAT() Petr dot Salinger at seznam dot cz
2006-03-20 21:55 ` [Bug libc/2471] " Petr dot Salinger at seznam dot cz
2006-04-01 19:16 ` drepper at redhat dot com
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).