gcc puts class name into class' namespace, so following code is legal for it:
class A {
public:
A();
};
A::A::A::A() {
}
...and is illegal for MSVC. I'm curious what standard tells about this issue.
On Tue, Nov 24, 2009 at 18:14, <[email protected]> wrote:
>
> Reviewers: Mads Ager,
>
> Description:
> Fix compilation error in r3352
>
> Compilation error caught on Windows. Strangely enough gcc did not complaint
> here.
>
> [email protected]
>
> Please review this at http://codereview.chromium.org/436022
>
> SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
>
> Affected files:
> M test/cctest/test-alloc.cc
>
>
> Index: test/cctest/test-alloc.cc
> ===================================================================
> --- test/cctest/test-alloc.cc (revision 3350)
> +++ test/cctest/test-alloc.cc (working copy)
> @@ -67,7 +67,7 @@
> OldSpace* old_data_space = Heap::old_data_space();
> static const int kOldDataSpaceFillerSize = ByteArray::SizeFor(0);
> while (old_data_space->Available() > kOldDataSpaceFillerSize) {
> - CHECK(!Heap::Heap::AllocateByteArray(0, TENURED)->IsFailure());
> + CHECK(!Heap::AllocateByteArray(0, TENURED)->IsFailure());
> }
> CHECK(!Heap::AllocateRawAsciiString(100, TENURED)->IsFailure());
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---