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]

Re: [C++ Patch] PR 39970


Hi,

We should already reject that because it isn't a constant expression; I don't think we want to bother checking specifically for this case in the parser as well.


Sure we reject this kind of code at instantiation time. I suspect submitter bothered filing a PR because other front-end also enforce the check in the parser, eg, EDG, but certainly I don't have a strong opinion.

Perhaps we aren't checking default arguments unless they're actually used; a could change that if they aren't dependent.


Your reply reached the mailing list a bit mangled, could you please clarify?

Thanks!
Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]