C++ PATCH for c++/48936 (failure with static constant template variable in sizeof)

Jason Merrill jason@redhat.com
Mon May 9 19:12:00 GMT 2011


This issue had to do with us bailing out too soon when trying to 
mark_used a constant variable in an unevaluated context.  I fixed this 
for 4.6 as part of the constexpr work, but a subset of that patch seems 
suitable for backporting.

Tested x86_64-pc-linux-gnu, applying to 4.4 and 4.5.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 48936.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110509/65043012/attachment.ksh>


More information about the Gcc-patches mailing list