[LLVMbugs] [Bug 6595] Flase error: conditional expression is ambiguous

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 30 14:42:51 PDT 2010


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

Scott MacVicar <smacvicar at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |smacvicar at gmail.com
         Resolution|FIXED                       |

--- Comment #4 from Scott MacVicar <smacvicar at gmail.com> 2010-06-30 16:42:50 CDT ---
I can reproduce this still with the following test case.


namespace HPHP {

  class mcrypt_data {
  public:
    std::string modes_dir;
  };
  static mcrypt_data s_globals;

  struct String {
    String(const char *);
    String(const std::string &s);
    operator const char*() const;
  };

  void f(bool cond, String &S) {
    (void)(cond ? s_globals.modes_dir : S);
  }
}

-- 
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