[Lldb-commits] [PATCH] Fix compilation of DataFormatters/StringPrinter.cpp with GCC.

Siva Chandra sivachandra at google.com
Tue Nov 4 12:02:15 PST 2014


Hi enrico,

GCC apparently does not like template specializations with namespace
qualifiers such as this:

template <>
bool
namespace1::namespace2::funcName<...>()
{
  ...
}

GCC ToT also errors out with such namespace qualification of explicit
template specializations.

I have removed such a usage and put in the old style way of doing the
same:

namespace namespace1
{
  namespace namespace2
  {
    template <>
    bool
    funcName<...>()
    {
      ...
    }
  } // namesapce namespace2
} // namespace namesapce3

http://reviews.llvm.org/D6122

Files:
  source/DataFormatters/StringPrinter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6122.15780.patch
Type: text/x-patch
Size: 11000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141104/9d567900/attachment.bin>


More information about the lldb-commits mailing list