public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mathieu dot malaterre at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug java/40816] New: error: 'jvariant::jvariant(jbyte)' cannot be overloaded Date: Tue, 21 Jul 2009 08:44:00 -0000 [thread overview] Message-ID: <bug-40816-9357@http.gcc.gnu.org/bugzilla/> (raw) > I didn't see the original message to which this is replying. It's about C++ code which contains a function overloaded on jbyte and jboolean. This fails with GCJ because they are typedef'ed to the same type. > If you can make a test case I'll see if the bug can be fixed. Compare the table I referenced with these pieces from jni_md.h: | typedef int jbyte __attribute__((__mode__(__QI__))); | typedef int jshort __attribute__((__mode__(__HI__))); | typedef int jint __attribute__((__mode__(__SI__))); | typedef int jlong __attribute__((__mode__(__DI__))); | typedef int jboolean __attribute__((__mode__(__QI__))); | typedef unsigned short jchar __attribute__((__mode__(__HI__))); | typedef float jfloat; | typedef double jdouble; | typedef jint jsize; | typedef int8_t jbyte; | typedef int16_t jshort; | typedef int32_t jint; | typedef int64_t jlong; | typedef float jfloat; | typedef double jdouble; | typedef jint jsize; | typedef int8_t jboolean; | typedef uint16_t jchar; jboolean is signed, but Sun's spec says it should be unsigned. -- Summary: error: 'jvariant::jvariant(jbyte)' cannot be overloaded Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mathieu dot malaterre at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40816
next reply other threads:[~2009-07-21 8:44 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-21 8:44 mathieu dot malaterre at gmail dot com [this message] 2009-10-27 9:43 ` [Bug java/40816] " mathieu dot malaterre at gmail dot com 2010-01-22 11:43 ` mathieu dot malaterre at gmail dot com 2010-01-23 23:18 ` aph at redhat dot com 2010-02-24 15:35 ` aph at gcc dot gnu dot org
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=bug-40816-9357@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).