[cfe-dev] [PATCH] Fix parsing comma in default arguments.

Olivier Goffart ogoffart at kde.org
Wed Jun 12 02:15:40 PDT 2013


Hi, 

About a moth ago I posted a patch on cfe-commits, but i did not get any reply,
so I am reposting to this list.

The patch fixes the bug
http://llvm.org/bugs/show_bug.cgi?id=13657

It fixes parsing of code such as:

struct S {
 void foo(map<int, int> m = map<int, int>()) ;
};

Or, in C++11:

struct S {
  map<int, int> m = map<int, int>();
};

Link to my post on cfe-commits:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130527/080812.html

-- 
Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-parsing-comma-in-default-argument.patch
Type: text/x-patch
Size: 7612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130612/cdb916d8/attachment.bin>


More information about the cfe-dev mailing list