Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CW 9.3 compiler bug

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  stuffit installer not "sea" ?  
Author Message
Gianluca Silvestri

External


Since: Aug 12, 2005
Posts: 1



(Msg. 1) Posted: Fri Aug 12, 2005 5:55 am
Post subject: CW 9.3 compiler bug
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

Hi,
I'm a Windows CW user. I'm posting here since it doesn't seem there is much
traffic of codewarrior.windows NG. I'd like to know if it's possible to
submit bug report to MW. I know it's a bit non-sense to submit a bug report
for which you'll never see a correction, but I enjoyed so much developing
with CW that I would like to contribute anyway.

I post here a small example to reprodure the bug (tested with CW 9.3):

class base{};
template<class T>
class privata : public base{};

template<class T>
class classe_di_test : private privata<T*>
{
friend void f(classe_di_test<T>);
};

void g(base&);

template<class T>
void f(classe_di_test<T> t)
{
g(t);
}

void test()
{
classe_di_test<A> t;
f<>(t); //#1
//f<A>(t); #2
//(f<>)(t); #3
}

at #1 the compiler should complain that template function f<> hasn't the
access right to private parent class base. Instead it complains that
void f(classe_di_test<A>)
does not exist. #2 and #3 works fine, i.e. they give the correct compile
error.

Thanks

---
Gianluca Silvestri

 >> Stay informed about: CW 9.3 compiler bug 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 311



(Msg. 2) Posted: Sun Aug 14, 2005 12:37 pm
Post subject: Re: CW 9.3 compiler bug [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <QHZKe.67010$fm.4404430@news4.tin.it>,
"Gianluca Silvestri" <clcppmod-poster DeleteThis @not.a.valid.address> wrote:

> I'm a Windows CW user. I'm posting here since it doesn't seem there is much
> traffic of codewarrior.windows NG. I'd like to know if it's possible to
> submit bug report to MW. I know it's a bit non-sense to submit a bug report
> for which you'll never see a correction, but I enjoyed so much developing
> with CW that I would like to contribute anyway.

See:
/Release Notes/Contacting Metrowerks/email Report
Forms/email_Bug_Report_Form.txt

> I post here a small example to reprodure the bug (tested with CW 9.3):

Try with CW 9.5?

 >> Stay informed about: CW 9.3 compiler bug 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
C++ compiler bug ? - Hi, I have the following class class XString; class A { public: virtual void SetCaption(const char* inCaption); virtual void SetCaption(const XString& inCaption); }; class B : public A { public: void SetCaption(const XString& in...

Compiler Bug - I came across the following bug in the CodeWarrior PPC compiler, took a long time to isolate... I've submitted it to Metrowerks, but heard only silence, which is unsettling. (Ron, what's going on over there?) Try compiling/disassembling the following:...

plist compiler - The documentation for the plist compiler notes __IDE_TARGET__() as a predefined macro. However, the same documentation says the plist compiler ignores #if. So what's the point of the plist compiler supporting __IDE_TARGET__() if you can't use it with..

CW 9.2 Crashing Bug in PLC compiler - Hi, Just ran across a crasher with the CodeWarrior 9.2 IDE: If you enter the name of a non-existent file into the 'Prefix File' field of the Property List prefs panel, and then attempt to compile a .plc file, the IDE crashes: Date/Time: 2004-06-07..

For MW Ron: CW9 Compiler Error - Ron, I've submitted a bug report for this problem, but I have lots more information to send. Basic problem is that our code compiled fine under CW8 and I'm seeing differences under CW9 (with the updates) that's leading to type conversion errors. ..
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]