Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3493
| Path | csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!www.openwatcom.org!not-for-mail |
|---|---|
| From | Brian Havard <brianh@kheldar.apana.org.au> |
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: crash on macro concat |
| Date | Fri, 21 Apr 2017 15:12:51 +1000 |
| Organization | OpenWatcom |
| Lines | 21 |
| Message-ID | <odcpbc$o1v$1@www.openwatcom.org> (permalink) |
| References | <oc51ig$1dp$1@www.openwatcom.org> |
| NNTP-Posting-Host | silk.apana.org.au |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | www.openwatcom.org 1492773037 24639 59.167.122.231 (21 Apr 2017 11:10:37 GMT) |
| X-Complaints-To | news@www.openwatcom.org |
| NNTP-Posting-Date | Fri, 21 Apr 2017 11:10:37 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
| In-Reply-To | <oc51ig$1dp$1@www.openwatcom.org> |
| Xref | csiph.com openwatcom.users.c_cpp:3493 |
Show key headers only | View raw
On 06/04/17 13:27, David wrote: > > #define CONCAT_I(s1,s2) s1##s2 > #define CONCAT(s1,s2) CONCAT_I(s1,s2) > > #define SECOND_PARAM > > #define TEMPLATE(s1) CONCAT(s1, SECOND_PARAM) > > TEMPLATE(whatever) I can confirm that this crashes the C++ compiler, wpp386 in both 1.9 and 2.0, although my 2.0 install is from April 2015, not sure if there's anything newer. The C compiler, wcc386, doesn't crash though. Giving SECOND_PARAM a value stops the crash. Commenting out "TEMPLATE(whatever)" also stops the crash.
Back to openwatcom.users.c_cpp | Previous | Next — Previous in thread | Find similar
crash on macro concat "David" <nope@dont.invalid> - 2017-04-05 20:27 -0700 Re: crash on macro concat Paul S. Person <psperson@ix.netscom.com.invalid> - 2017-04-06 09:28 -0700 Re: crash on macro concat Hans-Bernhard Bröker <broeker@physik.rwth-aachen.de> - 2017-04-06 18:57 +0200 Re: crash on macro concat Brian Havard <brianh@kheldar.apana.org.au> - 2017-04-21 15:12 +1000
csiph-web