Package: gcc
Version: 2:2.95.4-15
Severity: normal
struct T {
void A()
{
B("x");
}
template
void B(const T &n)
{
}
};
06:26pm [EMAIL PROTECTED]/5 [~/prob] g++ -g -Wall oops.cc
oops.cc: In method `void T::B(const char (&)[2])
Package: g++-4.1
Version: 4.1.1-15
Severity: normal
With attached code,
t.cc: In member function ‘void ThemeMetric::Read() [with T = GoalType]’:
t.cc:32: instantiated from here
t.cc:22: error: no matching function for call to ‘FromStack(GoalType&)’
t.cc:3: note: candidates are: void LuaHelpers:
reopen 228645
thanks
The bug is valid, and reopened upstream.
--
Glenn Maynard
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Package: g++-3.3
Version: 1:3.3.2-0pre4
Severity: wishlist
This code:
#include
struct foo {
~foo() { }
virtual void bar() { }
};
struct fum: public foo {
virtual ~fum() { printf("x\n"); }
};
main() { foo *x = new fum; delete x; }
generates:
blah.cc:2: warning: `struct
Package: g++
Version: 1:2.95.3-5
Severity: normal
/usr/doc/g++-2.95/README.C++ says STL docs are in /usr/doc/stl-manual;
it should also mention that it requires the stl-manual package.
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux zewt.org 2.4.2-XFS #4 SMP Thu Feb 2
Package: libstdc++5-3.3-dev
Version: 1:3.3.3-0pre2
Severity: normal
---
#include
#include
using namespace std;
int foo() { return llabs(1); }
---
g++-3.3 blah.cc -c
blah.cc: In function `int foo()':
blah.cc:6: error: call of overloaded `llabs(int)' is ambiguous
/usr/include/stdlib.h:754: erro
it, and it's impossible
to avoid math.h (as library headers often pull it in.)
This doesn't happen with other functions in cstdlib, such as abs().
Comments in /usr/include/c++/3.3/cstdlib indicate that it's intended to
work ("// Get rid of those macros defined in ...").
--
Glenn Maynard
7 matches
Mail list logo