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 243546 - inaccuracy tests (clang): template, operator and specialization
Summary: inaccuracy tests (clang): template, operator and specialization
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 08:32 UTC by soldatov
Modified: 2014-04-29 12:43 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 08:32:48 UTC
File: CXX/temp/temp.decls/temp.mem/p5.cpp
Errors:
CXX/temp/temp.decls/temp.mem/p5.cpp 7 unexpected token: A
CXX/temp/temp.decls/temp.mem/p5.cpp 8 unexpected token: A
CXX/temp/temp.decls/temp.mem/p5.cpp 71 unexpected token: X0
CXX/temp/temp.decls/temp.mem/p5.cpp 72 unexpected token: X0

Code:
struct A { 
  template <class T> operator T*();
}; 

template <class T> A::operator T*() { return 0; }
template <> A::operator char*(){ return 0; } // specialization
template A::operator void*(); // explicit instantiation

int main() { 
  A a;
  int *ip; 
  ip = a.operator int*();
}
Comment 1 petrk 2014-04-10 11:58:50 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/7c825998be3a
Comment 2 Quality Engineering 2014-04-11 02:18:04 UTC
Integrated into 'main-silver', will be available in build *201404110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7c825998be3a
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243546 - inaccuracy tests (clang): template, operator and specialization
Comment 3 soldatov 2014-04-22 07:41:17 UTC
verified
no errors in latest test report
Comment 4 Quality Engineering 2014-04-24 02:06:47 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/b3a6413f3621
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #243546 - inaccuracy tests (clang): template, operator and specialization
(transplanted from 7c825998be3ab729d3dc6638ff184aab697dbe19)