[cfe-dev] how to pass stdmap as a default constructor parameter

Olivier Goffart ogoffart at kde.org
Sat Aug 10 02:55:12 PDT 2013


On Saturday 10 August 2013 17:27:01 Jean Lee wrote:
> I suffer a problem when using std::map in clang. I compile it in clang 3.3
> under ubuntu 12.04, and the problem is also in clang 3.0.
> The codes like follows (also in attachment):
[...]
> test.cpp:9:36: error: expected ')'
>         = std::map<std::string,std::string>())
>                                           ^

Hi,

This is a known bug:
http://llvm.org/bugs/show_bug.cgi?id=13657

I have a patch for it[1], but it has not been integrated yet
[1] http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130610/081655.html

-- 
Olivier




More information about the cfe-dev mailing list