[cfe-commits] [PATCH] C++11 nullptr-convert standalone tool

Vane, Edwin edwin.vane at intel.com
Fri Nov 30 06:12:44 PST 2012


This occurred to me too so my test case has two constructions of the Bar<int> object: one is constructed without an argument and the other takes an argument. The AST dump remains the same however; no default parameter for Bar::Bar with T = int.

-----Original Message-----
From: metafoo at gmail.com [mailto:metafoo at gmail.com] On Behalf Of Richard Smith
Sent: Thursday, November 29, 2012 3:17 PM
To: reviews+D136+public+4d1cee17eee8e74d at llvm-reviews.chandlerc.com
Cc: chandlerc at gmail.com; klimek at google.com; Vane, Edwin; mclow.lists at gmail.com; cfe-commits at cs.uiuc.edu; gribozavr at gmail.com; eli.friedman at gmail.com
Subject: Re: [PATCH] C++11 nullptr-convert standalone tool

On Thu, Nov 29, 2012 at 5:40 AM, Edwin Vane <edwin.vane at intel.com> wrote:
>
>   Instantiating the template doesn't help. In fact my test case is already instantiating the template with Bar<int> which I presume is why I see two entries in the AST for Bar, one with T=int and one general definition.

Your test case is probably not triggering the instantiation of the default argument (default arguments are instantiated on demand, not with the class).




More information about the cfe-commits mailing list