Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > openwatcom.users.c_cpp > #3493
| From | Brian Havard <brianh@kheldar.apana.org.au> |
|---|---|
| Newsgroups | openwatcom.users.c_cpp |
| Subject | Re: crash on macro concat |
| Date | 2017-04-21 15:12 +1000 |
| Organization | OpenWatcom |
| Message-ID | <odcpbc$o1v$1@www.openwatcom.org> (permalink) |
| References | <oc51ig$1dp$1@www.openwatcom.org> |
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