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: [email protected] [mailto:[email protected]] On Behalf Of Richard Smith Sent: Thursday, November 29, 2012 3:17 PM To: [email protected] Cc: [email protected]; [email protected]; Vane, Edwin; [email protected]; [email protected]; [email protected]; [email protected] Subject: Re: [PATCH] C++11 nullptr-convert standalone tool On Thu, Nov 29, 2012 at 5:40 AM, Edwin Vane <[email protected]> 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). _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
