Bug 436828 - g++ mis-diagnoses: ./frysk/rsl/Log.h:67: error: Java method ‘void frysk::rsl::Log::dump(JArray<bool>*)’ has non-Java parameter type ‘JArray<bool>*’
g++ mis-diagnoses: ./frysk/rsl/Log.h:67: error: Java method ‘void frysk::rsl...
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks: 173278
  Show dependency treegraph
 
Reported: 2008-03-10 13:59 EDT by Andrew Cagney
Modified: 2008-03-10 14:56 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-10 14:56:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Compiler Collection 35469 None None None Never

  None (edit)
Description Andrew Cagney 2008-03-10 13:59:58 EDT
Given this code snippet:

    63  public:
    64    ::frysk::rsl::Log * print(jboolean);
    65  private:
    66    void dump(jboolean);
    67    void dump(JArray< jboolean > *);
    68  public:
    69    ::frysk::rsl::Log * print(jchar);

g++ is mis-diagnosing:

source='../../frysk/frysk-sys/frysk/rsl/cni/Log.cxx'
object='frysk/rsl/cni/Log.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/sh ../../frysk/frysk-sys/depcomp \
        g++ -DPACKAGE_NAME=\"frysk\" -DPACKAGE_TARNAME=\"frysk\"
-DPACKAGE_VERSION=\"0.0.1.2007.10.24\" -DPACKAGE_STRING=\"frysk\
0.0.1.2007.10.24\" -DPACKAGE_BUGREPORT=\"\" -D_FILE_OFFSET_BITS=64
-DPACKAGE=\"frysk\" -DVERSION=\"0.0.1.2007.10.24\" -I. -I../../frysk/frysk-sys 
  -I../../frysk/frysk-sys -I../../frysk/frysk-sys/../frysk-imports/include -I.
-I../../frysk/frysk-sys/../frysk-imports/elfutils/libelf
-I../../frysk/frysk-sys/../frysk-imports/elfutils/libdw
-I../../frysk/frysk-sys/../frysk-imports/elfutils/libdwfl
-I../../frysk/frysk-sys/../frysk-imports/libunwind/include
-I./../frysk-imports/libunwind-i386/include
-I./../frysk-imports/libunwind-x86_64/include
-I./../frysk-imports/libunwind-ppc64/include
-I./../frysk-imports/libunwind-ppc32/include -fPIC  -g -O -Wall -Werror -c -o
frysk/rsl/cni/Log.o ../../frysk/frysk-sys/frysk/rsl/cni/Log.cxx
In file included from ../../frysk/frysk-sys/frysk/rsl/cni/Log.cxx:44:
./frysk/rsl/Log.h:67: error: Java method ‘void
frysk::rsl::Log::dump(JArray<bool>*)’ has non-Java parameter type ‘JArray<bool>*’
Comment 1 Andrew Haley 2008-03-10 14:49:58 EDT
That really is strange.  We use such constructs all the time in libgcj.

I wonder if this is related to some changes involving the definition
of jboolean.  Which g++ version is this?
Comment 2 Jakub Jelinek 2008-03-10 14:56:36 EDT
This is already tracked upstream.

Note You need to log in before you can comment on or make changes to this bug.