[c++-concepts] Restore missing code from previous trunk merge

Braden Obrzut admin@maniacsvault.net
Fri Feb 6 04:52:00 GMT 2015


A little bit of code went missing due to the constant expressions code 
being factored out.  Additionally, concepts are currently dependent on 
changes to CPTK_IS_CONVERTIBLE_TO, so this patch restores that.  I'm 
told that this was removed from trunk and that the concepts branch will 
be adapted to follow suit, but for now it fixes a regression with 
compound requirements.

- Braden Obrzut

2015-02-05  Braden Obrzut  <admin@maniacsvault.net>

     * gcc/cp/constexpr.c (potential_constant_expression_1): Readded missing
     cases from previous merge from trunk.
     * gcc/cp/cxx-pretty-print.c (pp_cxx_trait_expression): Restored
     CPTK_IS_CONVERTIBLE_TO for the time being since the constraint code
     relies on it.
     * gcc/cp/semantics.c (finish_trait_expr): Likewise.
     * gcc/testsuite/g++.dg/concepts/req9.C: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: concepts-mergemissing.diff
Type: text/x-patch
Size: 1932 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150206/bf72395f/attachment.bin>


More information about the Gcc-patches mailing list