C++ PATCH: Don't instantiate member constants
Jason Merrill
jason@redhat.com
Wed Mar 21 16:47:00 GMT 2001
We were instantiating member constants even without a definition of the
variable template, which caused us to clear DECL_IN_AGGR_P and write out
the instantiation. This isn't actually even useful, as we will have
already set up DECL_INITIAL in instantiate_class_template. This used to be
harmless, because we only did anything if DECL_INITIAL wasn't already set.
Applied to both trunk and branch, as this worked in 2.95.
2001-03-20 Jason Merrill <jason@redhat.com>
* pt.c (instantiate_decl): Abort if we see a member constant
instantiation that doesn't already have its initializer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00000.bin
Type: text/x-c
Size: 312 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20010321/4768ff4d/attachment.bin>
More information about the Gcc-patches
mailing list