This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
In this testcase, we consider the initializer of b to decide if it's value-dependent, but the initializer mentions b, so we were recursing infinitely. But if we're interested in the address, we don't care about the value; we already handle that appropriately in the constexpr code, this patch updates value_dependent_expression_p accordingly. Tested x86_64-pc-linux-gnu, applying to trunk.
Attachment:
82115.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |