Diego Novillo wrote:
On Thu, Mar 12, 2009 at 09:32, Paolo Carlini <paolo.carl...@oracle.com> wrote:
Hi,
Notice how the third argument is 'int' instead of 'const int'. Is
this the way C++ is supposed to behave or is this a bug in the FE?
Well, I would say this is a rather well known C++ feature not a bug. It
took me a little time finding the exact section of the standard where it
is stated but I think finally I found it: but last item of 13.1/3. Also,
8.3.5/3.
Thanks, this makes it easier. I will add this as part of the FE
cleanup we do before writing the IL to disk.
Which way the cleanup is going to be? Remove the "const" from
the C FE or re-add the "const" to the IL of the C++ FE?
Michael