This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question regarding C++ and inline assembler...


> Anyway, g++ accepts `>>' as `> >' when
> `>' is used as a template bracket

That could be because >> pattern being the ANSI shift-right is defined to  
accept white space and comments within the token, so

>>
>  >
> /*obnoxious comment*/ >

are all tokenized to the same >> token

-- from my understanding

whereas :: is not part of ANSI-C, thus there does not have to be such  
ignoring of white and comments by design.

Please correct me if I'm wrong.

Thanks A Bunch! David Young; VVI-DCS
dyoung@vvi.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]