[cfe-dev] [PATCH] Properly handle function attributes in grouping parentheses

Charles Davis cdavis at mymail.mines.edu
Mon Mar 1 06:29:16 PST 2010


Hi,

This patch is supposed to fix the other part of PR6408, by adding a
special type of DeclaratorChunk (as suggested by John McCall) and
attaching any attributes inside to that chunk. Then, Sema finds the
chunk and applies the attributes to the appropriate type.

Unfortunately, this patch has several major problems. In its current
state, it breaks two C++ test (test/CXX/special/class.ctor/p1.cpp and
test/SemaCXX/constructor.cpp). The first one is some weird interaction
between templates and my new code.

The second one uses two pairs of grouping parentheses on a constructor.
This confuses my code. All of my attempts to solve this just break more
tests--even so far as causing crashes! :(

Chip
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr6408-fix-2.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100301/e8fe8d7b/attachment.ksh>


More information about the cfe-dev mailing list