This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/46001] New: [4.6 Regression] diagnostic refers to type '__java_boolean'


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

           Summary: [4.6 Regression] diagnostic refers to type
                    '__java_boolean'
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


struct S
{
  char* p;
  unsigned char f : 1;
};

struct S s;
void* a = s.p | s.f;

4.6 gives:

jb.cc:8:19: error: invalid operands of types 'char*' and '__java_boolean' to
binary 'operator|'

previous versions give the expected error:

jb.cc:8:19: error: invalid operands of types 'char*' and 'unsigned char:1' to
binary 'operator|'


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