Skip to content

dejagnu test fails to compiler with clang g++.old-deja/g++.pt/memclass5.C #11152

@llvmbot

Description

@llvmbot
Bugzilla Link 10780
Version 2.9
OS Linux
Attachments [g++.old-dejahttps://user-images.githubusercontent.com/60944935/143743751-584ab9f7-8ff7-4fde-888d-6a5a282f0094.gz)
Reporter LLVM Bugzilla Contributor

Extended Description

Compiles with g++ and intel compiler with edg front end

/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:15:27: error:
typename specifier refers to non-type member 'B' in 'A'
b.A::template B::~B();
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:22:3: note:
in instantiation of function template specialization 'f<int, char>'
requested here
f<int, char>();
^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.pt/memclass5.C:3:29: note:
referenced member 'B' is declared here
template struct B {
^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"rejects-valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions