[Bug c++/11510] New: Error message with operator __imag__ is missing spaces

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 12 23:54:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Error message with operator __imag__ is missing spaces
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: gdr at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

PR 11437 has this code:
---------------------------
void f (void) 
{ 
    struct { } a; 
    __imag__ a; 
} 
---------------------------
Nathanael fixed the ICE we had with it, but the error message we now get is this:
test.cxx:5: error: no match for 'operator__imag__' in '__imag__a'


The error message has no spaces before or after the __imag__, in both parts
where it occurs. We should rewrite
  operator__imag__
into
  operator __imag__
and 
  __imag__a
into
  __imag__ a

W.



More information about the Gcc-bugs mailing list