[LLVMbugs] [Bug 6595] New: Flase error: conditional expression is ambiguous
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 12 06:08:25 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6595
Summary: Flase error: conditional expression is ambiguous
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: Fons.Rademakers at cern.ch
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4492)
--> (http://llvm.org/bugs/attachment.cgi?id=4492)
Source file exhibiting the problem
The attached aap.cxx compiles fine with g++ (and for that matter any other know
compiler), but not with clang++. Do:
clang++ -c aap.cxx
In file included from net/net/src/TApplicationRemote.cxx:1:
net/net/src/TApplicationRemote.cxx:102:24: error: conditional expression is
ambiguous; 'class TString' can be converted to 'char const [1]' and vice
versa
TString user = (pw) ? pw->fUser : "";
^ ~~~~~~~~~ ~~
1 diagnostic generated.
Compiles fine with g++.
Cheers, Fons.
--
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