[LLVMbugs] [Bug 4120] better error recovery for digraph confusion: <::foo -> < ::foo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 24 14:58:55 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=4120

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |FIXED

--- Comment #2 from Eli Friedman <sharparrow1 at yahoo.com> 2011-04-24 16:58:54 CDT ---
template<typename t>  class f;
typedef int a;
int b = static_cast<::a>(4);
template<>
class f <::a> {
};

<stdin>:3:20: error: found '<::' after a static_cast which forms the digraph
      '<:' (aka '[') and a ':', did you mean '< ::'?
int b = static_cast<::a>(4);
                   ^~~
                   < ::
<stdin>:5:9: error: found '<::' after a template name which forms the digraph
      '<:' (aka '[') and a ':', did you mean '< ::'?
class f <::a> {
        ^~~
        < ::

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list