public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RFC:  __FUNCTION__ and __PRETTY_FUNCTION__
@ 2001-12-09 10:16 Neil Booth
  2001-12-09 11:48 ` Joseph S. Myers
  0 siblings, 1 reply; 18+ messages in thread
From: Neil Booth @ 2001-12-09 10:16 UTC (permalink / raw)
  To: gcc; +Cc: aj

As Andreas pointed out, my string concatenation patches break the
concatenation of these functions.  They are documented as undergoing
concatenation.

However, g++ does _not_ concatenate these; it gives a parse error.
Only the C/ObjC front end concatenates them.  Until yesterday, anyway
8^)

I think their undergoing concatenation is wrong and a poor design
decision: it is a violation of strict ordering of the ISO C and C++
standards, since by the time we are compiling in phase 7, phase 6
string concatenation should already have been done.

So, since g++ does not concatenate these, and it makes moving string
concatenation out of the parser difficult, I would like to propose
changing the documentation to state that they do not concatenate.

Thoughts?

Neil.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2001-12-11 20:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-09 10:16 RFC: __FUNCTION__ and __PRETTY_FUNCTION__ Neil Booth
2001-12-09 11:48 ` Joseph S. Myers
2001-12-09 15:02   ` Neil Booth
2001-12-09 15:13     ` Joseph S. Myers
2001-12-10  0:21     ` Andreas Jaeger
2001-12-10  0:56       ` Joseph S. Myers
2001-12-10 10:34         ` Neil Booth
2001-12-10  1:46       ` Nathan Sidwell
2001-12-10 10:49         ` Neil Booth
2001-12-10 11:14       ` Mark Mitchell
2001-12-10 12:12         ` Neil Booth
2001-12-10 12:16           ` Mark Mitchell
2001-12-10 13:03         ` DJ Delorie
2001-12-10 13:16           ` Neil Booth
2001-12-10 14:12           ` Mark Mitchell
2001-12-10 19:12         ` Richard Henderson
2001-12-10 21:01           ` Mark Mitchell
2001-12-11 12:29         ` Joe Buck

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