This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243560 - inaccuracy tests (clang): explicit instantiation
Summary: inaccuracy tests (clang): explicit instantiation
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 11:30 UTC by soldatov
Modified: 2014-04-24 02:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-04-04 11:30:32 UTC
File: CXX/temp/temp.spec/p5.cpp

Errors:
CXX/temp/temp.spec/p5.cpp 26 unexpected token: ;
Expected error: CXX/temp/temp.spec/p5.cpp 27 unexpected token: ;

Code:
template<typename T>
struct X0 {
  union Inner { };
};

template union X0<float>::Inner;
Comment 1 soldatov 2014-04-04 11:36:32 UTC
File: CXX/temp/temp.spec/temp.explicit/p1.cpp
Errors:
CXX/temp/temp.spec/temp.explicit/p1.cpp 80 unexpected token: ;
CXX/temp/temp.spec/temp.explicit/p1.cpp 81 unexpected token: ;

Code:
template<typename T, typename U>
struct X2 {
  void f(T &t, U u) { 
  }
  
  struct Inner {
    T member1;
    U member2;
  };
  
};

template struct X2<int, float>::Inner;
Comment 2 soldatov 2014-04-04 11:39:48 UTC
File: CXX/temp/temp.spec/temp.explicit/p2.cpp
Errors:
CXX/temp/temp.spec/temp.explicit/p2.cpp 28 unexpected token: ;

Code:
template<typename T>
struct X0 {
  struct Inner {};
};

typedef X0<int> XInt;

template struct XInt::Inner; // expected-warning{{template-id}}
Comment 3 soldatov 2014-04-04 11:50:17 UTC
File: CXX/temp/temp.spec/temp.explicit/p3-0x.cpp
Errors:
CXX/temp/temp.spec/temp.explicit/p3-0x.cpp 38 unexpected token: ;
CXX/temp/temp.spec/temp.explicit/p3-0x.cpp 57 unexpected token: ;

Code:
namespace has_inline_namespaces {
  inline namespace inner {
    template<class T> void f(T&) {}

    template<class T> 
    struct X0 {
      struct MemberClass {};

    };
  }
  struct X1 {};
  struct X2 {};

  template struct X0<X2>::MemberClass;
}

struct X4;

template struct has_inline_namespaces::X0<X4>::MemberClass;
Comment 4 soldatov 2014-04-04 12:29:14 UTC
File: CXX/temp/temp.spec/temp.explicit/p4.cpp
Errors:
CXX/temp/temp.spec/temp.explicit/p4.cpp 26 unexpected token: ;

Code:
template<typename T>
struct X0 {
  struct Inner {};
};

template struct X0<long>::Inner;
Comment 5 petrk 2014-04-08 11:54:32 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/e8a1a2747e9d
Comment 6 Quality Engineering 2014-04-09 02:32:24 UTC
Integrated into 'main-silver', will be available in build *201404090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e8a1a2747e9d
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243560 - inaccuracy tests (clang): explicit instantiation
Comment 7 soldatov 2014-04-22 07:44:48 UTC
verified
no errors in latest test report
Comment 8 Quality Engineering 2014-04-24 02:03:20 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/58371d34070a
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243560 - inaccuracy tests (clang): explicit instantiation
(transplanted from e8a1a2747e9d1b73a3bd8137fc8c4f6bb7e31160)