[LLVMbugs] [Bug 12241] New: Nested initializer list constructor does not match constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Mar 11 07:59:31 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12241
Bug #: 12241
Summary: Nested initializer list constructor does not match
constructor
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: vanboxem.ruben at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This reduced example fails to compile on ToT Clang built today (r152539)
========================================================================
#include <string>
#include <map>
enum class toolchain
{
GNU, // GCC+GNU binutils
Microsoft, // cl.exe and link.exe
LLVM, // Clang+GNU binutils (may change later)
Intel // ICC+platform linker
// ...
};
enum class generator_string
{
compiler, // compiler program name (without target prefixes)
linker, // linker program name
output_argument, // precedes output file name
compile_argument, // compile to object file
};
typedef std::map<toolchain, std::map<generator_string, std::string> >
generator_map;
const generator_map cgenerator_map =
{ { toolchain::GNU,
{ {generator_string::compiler, "gcc"},
{generator_string::linker, "gcc"},
{generator_string::output_argument, "-o"},
{generator_string::compile_argument, "-c"} } },
{ toolchain::Microsoft,
{ {generator_string::compiler, "cl"},
{generator_string::linker, "link"},
{generator_string::output_argument, ""},
{generator_string::compile_argument, "/c"} } },
{ toolchain::LLVM,
{ {generator_string::compiler, "clang++"} } },
{ toolchain::Intel,
{ {generator_string::compiler, "icc"} } } };
========================================================================
GCC 4.5 and 4.6 have no issue with it: http://ideone.com/n3UNr
--
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