From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charlie Xiaoli Huang To: hjl@lucon.org (H.J. Lu) Subject: here's a short example Date: Sun, 14 Dec 1997 20:16:00 -0000 Message-id: <199712150018.AAA95766@out2.ibm.net> References: X-SW-Source: 1997-12/msg00819.html >> ( report on id's in egcs asm file containing '?' that gas chokes on ...) > Please send me the smallest preprocessed C++ code and > your asm output. I will take a look at them. Here's a very simple example: #include typedef int *intP; typedef list intlist; fubar() { intlist alist; remove(alist.begin(), alist.end(), NULL); } The interesting thing is that if one were to replace NULL above with an (intP)0, everything is okay. No errors were reported. The cpp output does not seem to transform any lines in there except making NULL into __null. I'm not a c++ language lawyer, but I thought the use of NULL was okay. Even if it's not, egcs shouldn't generate a bad id for asm to choke on, right? I'm sending you the output of egcs -E and egcs -S in a seperate message for fear that my mailer would not let such a long message thru... Thanks for looking into it. hxl -- H.J. Lu (hjl@gnu.org)