This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [PATCH] sys/io.h and g++


Ulrich Drepper <drepper@cygnus.com> writes:

|> Andreas Schwab <schwab@suse.de> writes:
|> 
|> > But the syntax requires `:', not `::'.
|> 
|> It requires treating : as a token, not ::.  If the C++ parser cannto
|> do it it's not compatible with the C asm struct which is a declared
|> goal.

The syntax for the asm statement does not contain `::'.

|> > Which braces?  I only see parenthesis, and they must contain valid C++
|> > expressions and string literals.
|> 
|> Wrong.  Anything can be between the parenthesis (thank you for
|> deliberately misunderstanding me).  Look at what the standard says.

Check the facts!  All the standard allows is a string literal.  Not any
thing remotely that looks like `::'.

|> If gcc currently uses the fact that these are strings and expressions
|> this is to make things easy.  But it does not mean it'll stay like
|> this.

It is documented like this.  So gcc is perfectly behaving as documented.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

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