[LLVMbugs] [Bug 7238] New: 'aka' text can make diagnostic unreadable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 26 14:00:04 PDT 2010


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

           Summary: 'aka' text can make diagnostic unreadable
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


For example, I got:

.../file.cc:100:46: error: no viable conversion from 'iterator' (aka
'dense_hashtable_iterator<std::pair<basic_string<char, std::char_traits<char>,
std::allocator<char> > const, int>, basic_string<char, std::char_traits<char>,
std::allocator<char> >, __gnu_cxx::hash<basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
dense_hash_map<basic_string<char, std::char_traits<char>, std::allocator<char>
>, int, __gnu_cxx::hash<basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
libc_allocator_with_realloc<std::pair<basic_string<char,
std::char_traits<char>, std::allocator<char> > const, int> > >::SelectKey,
dense_hash_map<basic_string<char, std::char_traits<char>, std::allocator<char>
>, int, __gnu_cxx::hash<basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
libc_allocator_with_realloc<std::pair<basic_string<char,
std::char_traits<char>, std::allocator<char> > const, int> > >::SetKey,
std::equal_to<basic_string<char, std::char_traits<char>, std::allocator<char> >
>, libc_allocator_with_realloc<std::pair<basic_string<char,
std::char_traits<char>, std::allocator<char> > const, int> > >') to
'hash_map<string, int>::const_iterator' (aka
'_Hashtable_const_iterator<std::pair<basic_string<char, std::char_traits<char>,
std::allocator<char> > const, int>, basic_string<char, std::char_traits<char>,
std::allocator<char> >, __gnu_cxx::hash<basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::_Select1st<std::pair<basic_string<char, std::char_traits<char>,
std::allocator<char> > const, int> >, std::equal_to<basic_string<char,
std::char_traits<char>, std::allocator<char> > >, std::allocator<int> >')
             it = item->diagnostics.begin(), end = item->diagnostics.end();
                                             ^     ~~~~~~~~~~~~~~~~~~~~~~~

Unfortunately, I don't have a good suggestion for deciding when to omit the aka
text.

-- 
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