public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "linux4sin at mail dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/13637] New: "or" "xor" "and" identifiers like || ^ && macroses
Date: Sat, 10 Jan 2004 00:24:00 -0000	[thread overview]
Message-ID: <20040110002417.13637.linux4sin@mail.ru> (raw)

class Reg{
public:
        Reg(){};
        Reg( const Reg& r ) {};
        Reg& xor( const Reg &r ){return *this;};
};
int main(){
        int and;
        Reg r;
        int a = 1 and 4;
        return 0;
}
Reg& or(Reg& r){return r;};

[sin@localhost fire]$ g++ -o si si.cc
si.cc:5: syntax error before `^' token
si.cc:6: syntax error before `}' token
si.cc: In function `int main()':
si.cc:8: syntax error before `&&' token
si.cc: At global scope:
si.cc:13: syntax error before `||' token

Reading specs from /usr/lib/gcc-lib/i586-alt-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking --enable-long-long
--enable-__cxa_atexit --enable-languages=c,c++,f77,objc,java
--program-suffix=-3.2 --enable-objc-gc --with-system-zlib
--without-included-gettext --host=i586-alt-linux --build=i586-alt-linux
--target=i586-alt-linux
Thread model: posix
gcc version 3.2.3 (ALT Linux, build 3.2.3-alt2)

Linux 2.4.22-std-up-alt12 i686 GNU/Linux

So, I can reload operators, but can't functions
Is it normal?

-- 
           Summary: "or" "xor" "and" identifiers like || ^ && macroses
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: linux4sin at mail dot ru
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13637


             reply	other threads:[~2004-01-10  0:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-10  0:24 linux4sin at mail dot ru [this message]
2004-01-10  0:26 ` [Bug c++/13637] " falk at debian dot org
2004-01-10  2:40 ` linux4sin at mail dot ru
2004-01-10 16:05 ` gdr at integrable-solutions dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040110002417.13637.linux4sin@mail.ru \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).