public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Pasting "sctps_ch_rcvd" and "[" does not give a valid preprocessing token
@ 2015-02-06 2:25 wangwzc
2015-02-06 2:42 ` Andrew Pinski
0 siblings, 1 reply; 2+ messages in thread
From: wangwzc @ 2015-02-06 2:25 UTC (permalink / raw)
To: gcc-bugs
I use gcc version 3.4.4, build the following lines, but it the following
error, what does it means, it seem no error according the C99 standard. Is
it a gcc bug?
sctp_input.c:3928:1: pasting "sctps_ch_rcvd" and "[" does not give a valid
preprocessing token
#define SCTP_CHUNK_STAT_INCR(chk_id, name) \
atomic_add_int(&sctpstat.sctps_ch_##name##[chk_id], 1);
SCTP_CHUNK_STAT_INCR(ch->chunk_type, rcvd);
--
View this message in context: http://gcc.1065356.n5.nabble.com/Pasting-sctps-ch-rcvd-and-does-not-give-a-valid-preprocessing-token-tp1118460.html
Sent from the gcc - bugs mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pasting "sctps_ch_rcvd" and "[" does not give a valid preprocessing token
2015-02-06 2:25 Pasting "sctps_ch_rcvd" and "[" does not give a valid preprocessing token wangwzc
@ 2015-02-06 2:42 ` Andrew Pinski
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Pinski @ 2015-02-06 2:42 UTC (permalink / raw)
To: wangwzc; +Cc: GCC Bugs
On Thu, Feb 5, 2015 at 6:24 PM, wangwzc <wangwzc@sina.com> wrote:
> I use gcc version 3.4.4, build the following lines, but it the following
> error, what does it means, it seem no error according the C99 standard. Is
> it a gcc bug?
Why do you think there is C99 standard code?
>
> sctp_input.c:3928:1: pasting "sctps_ch_rcvd" and "[" does not give a valid
> preprocessing token
GCC is correct pasting sctps_ch_rcvd and [ does not give a valid
preprocessing token.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7976
Thanks,
Andrew
>
> #define SCTP_CHUNK_STAT_INCR(chk_id, name) \
> atomic_add_int(&sctpstat.sctps_ch_##name##[chk_id], 1);
>
> SCTP_CHUNK_STAT_INCR(ch->chunk_type, rcvd);
>
>
>
>
> --
> View this message in context: http://gcc.1065356.n5.nabble.com/Pasting-sctps-ch-rcvd-and-does-not-give-a-valid-preprocessing-token-tp1118460.html
> Sent from the gcc - bugs mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-06 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06 2:25 Pasting "sctps_ch_rcvd" and "[" does not give a valid preprocessing token wangwzc
2015-02-06 2:42 ` Andrew Pinski
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).