[LLVMbugs] [Bug 8674] bewildering error message: cannot initialize a parameter of type 'struct stat *' with an rvalue of type 'struct stat *'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 14 18:57:27 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=8674

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |FIXED

--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> 2011-10-14 20:57:26 CDT ---
<stdin>:12:16: error: cannot initialize a parameter of type 'struct stat *'
(aka 'stat *') with an rvalue of type
      'struct stat *' (aka 'clang::stat *')
  ::baz("foo", &X);
               ^~
<stdin>:8:36: note: passing argument to parameter here
void baz(const char*, struct stat *);
                                   ^

Seems good enough to me.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list