[Webkit-unassigned] [Bug 39945] [PATCH] compilation error with clang in JSDOMBinding.h

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 31 10:10:55 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39945


Darin Adler <darin at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com




--- Comment #5 from Darin Adler <darin at apple.com>  2010-05-31 10:10:54 PST ---
(In reply to comment #4)
> Why doesn't this fail in gcc or msvc? (i'm removing the r+ to prevent commit bot shenanigans till i understand thwe issue)

Here’s my understanding: The older compilers don't implement as much checking at template-definition time as clang does. These older C++ compilers tended to treat templates more like macros and not do much checking on them until the template was instantiated. But the C++ standard allows (perhaps requires) additional checking at the time the template is defined.

On the other hand, I was led to believe that some folks have successfully compiled this code with at least some version of clang, so this may simply be a mistake in a certain version of clang rather than correct behavior.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list