Skip to content

LLDB 10.x (and current master) fails to build with GCC 5.4 #44136

@mstorsjo

Description

@mstorsjo
Bugzilla Link 44791
Resolution FIXED
Resolved on Feb 06, 2020 01:56
Version 10.0
OS All
Blocks #43900
CC @adrian-prantl,@zmodem,@JDevlieghere,@labath

Extended Description

Building the current master with GCC 5.4 (on Ubuntu 16.04) fails like this:

../tools/lldb/source/DataFormatters/LanguageCategory.cpp:71:68: error: specialization of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' in different namespace [-fpermissive]
auto &LanguageCategory::GetHardcodedFinderlldb::TypeFormatImplSP() {
^
In file included from ../tools/lldb/source/DataFormatters/LanguageCategory.cpp:9:0:
../tools/lldb/include/lldb/DataFormatters/LanguageCategory.h:52:9: error: from definition of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' [-fpermissive]
auto &GetHardcodedFinder();
^
../tools/lldb/source/DataFormatters/LanguageCategory.cpp:76:69: error: specialization of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' in different namespace [-fpermissive]
auto &LanguageCategory::GetHardcodedFinderlldb::TypeSummaryImplSP() {
^
In file included from ../tools/lldb/source/DataFormatters/LanguageCategory.cpp:9:0:
../tools/lldb/include/lldb/DataFormatters/LanguageCategory.h:52:9: error: from definition of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' [-fpermissive]
auto &GetHardcodedFinder();
^
../tools/lldb/source/DataFormatters/LanguageCategory.cpp:81:71: error: specialization of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' in different namespace [-fpermissive]
auto &LanguageCategory::GetHardcodedFinderlldb::SyntheticChildrenSP() {
^
In file included from ../tools/lldb/source/DataFormatters/LanguageCategory.cpp:9:0:
../tools/lldb/include/lldb/DataFormatters/LanguageCategory.h:52:9: error: from definition of 'template auto& lldb_private::LanguageCategory::GetHardcodedFinder()' [-fpermissive]
auto &GetHardcodedFinder();
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillalldb

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions