[Bug c++/27402] New: error on SFINAE

2006-05-02 Thread sebor at roguewave dot com
Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: sparc-sun-solaris2.9 GCC host trip

[Bug c++/27527] New: invalid types produced out of argument deduction (SFINAE bug)

2006-05-09 Thread sebor at roguewave dot com
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27527

[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)

2006-05-09 Thread sebor at roguewave dot com
--- Comment #1 from sebor at roguewave dot com 2006-05-10 01:07 --- Here's a test case designed to exhaustively exercise all cases mentioned in 14.8.2, p2. Hope it helps. $ cat ~/tmp/t.cpp && (c=1; while [ $c -lt 15 ]; do printf "%s: " "$c"; gcc -DCA

[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)

2006-05-12 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-05-12 16:27 --- EDG points out to me that both the original test case and the one from comment #1 are ambiguous because only the declaration of the signature of the function (and thus only the declaration of its return type and its

[Bug c++/27527] invalid types produced out of argument deduction (SFINAE bug)

2006-05-12 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-05-12 16:30 --- Created an attachment (id=11446) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11446&action=view) Corrected test program exercising SFINAE. After modifying the test program from comment #1 to correc

[Bug c/27629] New: SIGSEGV in printstack() on Solaris 9

2006-05-16 Thread sebor at roguewave dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target tr

[Bug target/27629] SIGSEGV in printstack() on Solaris 9

2006-05-16 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-05-16 17:35 --- I'm not sure what you find wrong with my "attitude" but yes, I did send Sun a note about it pointing them to this problem report. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27629

[Bug target/27629] SIGSEGV in printstack()

2006-05-17 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2006-05-17 15:12 --- Here's the verbose output from the compiler driver: $ gcc -v t.c Using built-in specs. Target: sparc-sun-solaris2.9 Configured with: /build/sebor/gcc-4.1.0/configure --enable-languages=c,c++ --prefix=/usr/loca

[Bug target/27629] SIGSEGV in printstack()

2006-05-17 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-05-17 17:43 --- I'm told that the fault is due to a known problem in the Sun libc: 6372620 printstack() segfaults when called from static function It this doesn't provide sufficient detail to work around the bug in gcc (as

[Bug target/27629] SIGSEGV in printstack()

2006-05-17 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2006-05-17 18:34 --- Maybe it's one of the runtime library functions that's static (maybe _start?). The diff between the two .s files is empty. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27629

[Bug target/27629] SIGSEGV in printstack()

2006-05-17 Thread sebor at roguewave dot com
--- Comment #9 from sebor at roguewave dot com 2006-05-17 21:35 --- Here's what I learned from Sun: Here is the test case from that bug report: [Makefile] main: main.o libshibby.so gcc -L. -lshibby -Wl,-R. -o main main.o main.o: main.c gcc -c -o main.o m

[Bug c++/27788] New: error casting address of a function template specialization

2006-05-28 Thread sebor at roguewave dot com
address of a function template specialization Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor

[Bug libstdc++/28103] New: std::operator<<(ostream&, string) sets badbit instead of failbit on failure

2006-06-20 Thread sebor at roguewave dot com
bor/tmp/t.cpp, line 21 Abort (core dumped) -- Summary: std::operator<<(ostream&, string) sets badbit instead of failbit on failure Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priorit

[Bug c++/28351] New: SIGSEGV rethrowing an exception with -m64 -static on ppc/linux

2006-07-11 Thread sebor at roguewave dot com
ception with -m64 -static on ppc/linux Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at rogu

[Bug c++/28351] SIGSEGV rethrowing an exception with -m64 -static on ppc/linux

2006-07-11 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-07-11 21:42 --- Libc says it's 2.3.3 (20040412). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28351

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass&)' is private error: within this context

2006-07-13 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-07-13 19:07 --- If it is in our (Rogue Wave) current code, could you please let us know where so we can look into fixing it? (It's doesn't matter whther gcc does the right thing here or not, our code should be portable

[Bug c/38126] New: suboptimal code for (a && b || !a && !b)

2008-11-14 Thread sebor at roguewave dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38126

[Bug libstdc++/38476] New: SIGSEGV on istream::read() in unbuffered mode

2008-12-10 Thread sebor at roguewave dot com
t: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38476

[Bug c++/38658] New: inefficient code on trivial try/catch statement

2008-12-28 Thread sebor at roguewave dot com
: inefficient code on trivial try/catch statement Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave

[Bug libstdc++/38476] SIGSEGV on istream::read() in unbuffered mode

2008-12-30 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2008-12-30 20:08 --- Quoting [lib.istream], p2: Both [formatted and unformatted] input functions are described as if they obtain (or extract) input characters by calling rdbuf()->sbumpc() or rdbuf()->sgetc(). They may use

[Bug c++/38677] New: extern template declaration accepted after explicit instantiation

2008-12-30 Thread sebor at roguewave dot com
struct S { T foo (); }; >>> template T S::foo () { return T (); }; >>> template struct S; >>> extern template struct S; >>> int main () { return S().foo (); } -- Summary: extern template declaration accepted after explicit instantiation Pr

[Bug libstdc++/38678] New: istream::read() calls streambuf::xsgetn()

2008-12-30 Thread sebor at roguewave dot com
std::streamsize main()xsgetn(char*, std::streamsize): Assertion `!"xsgetn should not be called"' failed. Aborted -- Summary: istream::read() calls streambuf::xsgetn() Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: nor

[Bug other/37405] syntax error on __wur in include-fixed/sys/stat.h

2009-01-04 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2009-01-04 22:37 --- Some additional background on the problem: it's likely that the gcc binary used to reproduce the problem on Red Hat Enterprise Linux AS release 4 has been configured and built on SUSE Linux Enterprise Server 10. S

[Bug libstdc++/38741] Unable to write data to wofstream

2009-01-09 Thread sebor at roguewave dot com
--- Comment #12 from sebor at roguewave dot com 2009-01-09 16:57 --- (In reply to comment #3) > Created an attachment (id=17044) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17044&action=view) [edit] As others have mentioned, the codecvt facet in your test case is b

[Bug c++/38980] New: missing -Wformat warning on const char format string

2009-01-26 Thread sebor at roguewave dot com
-c t.cpp 4.3.1 t.cpp: In function 'void foo(size_t)': t.cpp:7: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t' $ -- Summary: missing -Wformat warning on const char format string Product: gcc

[Bug c++/24948] New: lookup chooses the wrong overload

2005-11-19 Thread sebor at roguewave dot com
Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: all GCC host triplet: all GCC target tri

[Bug libstdc++/25304] New: std::fill_n, std::generate_n incorrect signature

2005-12-07 Thread sebor at roguewave dot com
ncorrect signature Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build

[Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature

2005-12-07 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2005-12-08 00:08 --- FWIW, I think Andrew makes a good point in comment #1. The algorithms really should return the iterator, otherwise the caller may not be able to find out the state of the iterator after the algorithm returns (e.g., when

[Bug libstdc++/25306] New: fill_n, generate_n assume Size is modifiable

2005-12-07 Thread sebor at roguewave dot com
Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: all GCC host triplet: all GCC target triplet: all http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25306

[Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature

2005-12-08 Thread sebor at roguewave dot com
--- Comment #10 from sebor at roguewave dot com 2005-12-08 15:51 --- No, I don't. The standard is clear and most of us seem to think it's "by design." Rather I am suggesting is that we might want to discuss with the whole LWG changing the return type as an enhan

[Bug libstdc++/25304] std::fill_n, std::generate_n incorrect signature

2005-12-08 Thread sebor at roguewave dot com
--- Comment #15 from sebor at roguewave dot com 2005-12-08 16:27 --- (In reply to comment #11) Okay, I see your concern. Well, IMO, your signatures are better than those required by the standard so if you care about 100% compliance you (or Paolo -- and I promise not to beat him

[Bug libstdc++/25306] fill_n, generate_n assume Size is modifiable

2006-01-10 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-01-10 16:14 --- (In reply to comment #2) I'm not sure what you mean. Could you show what one of the algorithms would look like with a Size that's not convertible to an integer? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25306

[Bug c++/28656] New: unhelpful null argument warning on memcpy()

2006-08-08 Thread sebor at roguewave dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28656

[Bug libstdc++/29026] std::basic_istream<>::sentry() fails to catch when reading whitespace

2006-09-11 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-09-11 21:25 --- This sounds like it might be related to http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#309. If so, and if this case is important to you (the submitter) it might be helpful to give the committee a little

[Bug libstdc++/29026] std::basic_istream<>::sentry() fails to catch when reading whitespace

2006-09-11 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-09-12 00:16 --- The reason why I think library issue 309 may be relevant is because while the arithmetic extraction operator>>() is a formatted input function (and thus subject to 27.6.1.1, p4, and required to begin by construc

[Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly

2006-09-12 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-09-12 16:16 --- (In reply to comment #4) Shouldn't the output be: 6 azerty123 9 -- sebor at roguewave dot com changed: What|Removed |

[Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly

2006-09-12 Thread sebor at roguewave dot com
--- Comment #8 from sebor at roguewave dot com 2006-09-12 17:24 --- No, I'm not sure. I got the output with our implementation but the latest working paper doesn't seem to support it (I had misread the text in 27.7.1.2, p2 to require that pptr() == epptr() uncoditionally r

[Bug libstdc++/29035] Initialisation of std::ostringstream does not work correctly

2006-09-12 Thread sebor at roguewave dot com
--- Comment #10 from sebor at roguewave dot com 2006-09-12 17:44 --- I think you're right. Even my own issue 562 is clear on this. I must have a bug in the implementation of the resolution of the issue. http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#562 --

[Bug c++/29185] New: inconsistent warning: deleting array

2006-09-22 Thread sebor at roguewave dot com
g array Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: all GCC host

[Bug c++/29185] inconsistent warning: deleting array

2006-09-22 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-09-22 16:57 --- Yes, but 5.3.5, p1 says "The operand shall have a pointer type, or a class type having a single conversion function (12.3.2) to a pointer type." and not "shall be convertible to a pointer type." No

[Bug c++/29185] inconsistent warning: deleting array

2006-09-26 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-09-26 16:31 --- The response I got from EDG is that the expression is well-formed because of 5, p8. They do agree that issuing a warning would be useful and opened an enhancement request. FWIW, I think it should be ill-formed with

[Bug c++/29185] inconsistent warning: deleting array

2006-09-26 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-09-26 18:56 --- You mean something like: if (is_pointer (p)) delete p; I suppose that could happen but why should it be any different than other non-sensical but lexically valid constructs with undefined behavior that require a

[Bug c++/29185] inconsistent warning: deleting array

2006-09-26 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2006-09-26 21:43 --- You're right, those weren't the best examples, but I still think they illustrate the point. The code in them is plain ill-formed even though it never gets executed, because it just doesn't make sense. de

[Bug c++/29273] New: error on dynamic_cast(array)

2006-09-28 Thread sebor at roguewave dot com
Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: all GCC host triplet: all GCC target triplet: all http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29273

[Bug c++/29185] inconsistent warning: deleting array

2006-09-28 Thread sebor at roguewave dot com
--- Comment #8 from sebor at roguewave dot com 2006-09-28 16:16 --- The EDG guys don't think this is worth spending the committee's time on so I won't be proposing any change to the standard. Issuing just a warning rather than an error is good enough for me. Also, I open

[Bug c++/29298] rejects valid specialization of member template classes

2006-10-02 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-10-02 19:19 --- Interesting. The vanilla EDG front end rejects it as expected. I wonder why Intel accepts it when neither EDG nor gcc does. Maybe we should open a bug with them to find out ;-) -- http://gcc.gnu.org/bugzilla

[Bug c++/28656] duplicated null argument warning on memcpy()

2006-10-13 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-10-13 21:02 --- You're right, I missed that. I confess I don't quite understand the rationale for this in the standard and I'm not aware of any plaform that causes problems for such calls but based on Doug Gwyn's

[Bug c/29465] New: warning for overlapping memcpy()

2006-10-13 Thread sebor at roguewave dot com
portedBy: sebor at roguewave dot com GCC build triplet: all GCC host triplet: all GCC target triplet: all http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29465

[Bug c++/28656] duplicated null argument warning on memcpy()

2006-10-13 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2006-10-13 21:09 --- I opened bug 29465 with a request for the new warning. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28656

[Bug c++/30738] New: suboptimal code for min, max, et al

2007-02-08 Thread sebor at roguewave dot com
n, max, et al Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: sparc-sun-solaris GC

[Bug c++/30811] New: __FUNCTION__ allowed in function declaration

2007-02-15 Thread sebor at roguewave dot com
ct: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30811

[Bug c++/30812] New: enhancement: exception specification in __PRETTY_FUNCTION__

2007-02-15 Thread sebor at roguewave dot com
exception specification in __PRETTY_FUNCTION__ Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at

[Bug c++/30811] __FUNCTION__ allowed in function declaration

2007-02-15 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2007-02-15 21:29 --- No, I'm not aware of any such paper. AFAIK, neither __FUNCTION__ nor __PRETTY_FUNCTION__ is specified by either C or C++, or proposed for inclusion either of them (I could be wrong). They're gcc extensions, a

[Bug c++/30811] __FUNCTION__ allowed in function declaration

2007-02-15 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2007-02-15 23:06 --- The wording proposed in N1970 for the C++ __func__ indentifier reads: -1- The identifier __func__ shall be implicitly declared by the translator as if, immediately following the opening brace of each function

[Bug c++/30811] __FUNCTION__ allowed in function declaration

2007-03-09 Thread sebor at roguewave dot com
--- Comment #6 from sebor at roguewave dot com 2007-03-09 18:25 --- (In reply to comment #5) Good point! I hadn't thought of that. Since that option is out and __FUNCTION__ should simply behave identically to __func__ and be disallowed in global or namespace scope function arg

[Bug c++/31158] New: wrong line number in warning: overflow in implicit constant conversion

2007-03-12 Thread sebor at roguewave dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31158

[Bug c++/31176] New: reorder class data members to minimize space waste

2007-03-14 Thread sebor at roguewave dot com
ion: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2007-03-14 19:04 --- (In reply to comment #1) > Interesting. Do the attributes apply to derived classes automatically? I would say no. > [...] > Is D also allowed to reorder members a and b? even with an explicit > _

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-14 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2007-03-14 19:05 --- (In reply to comment #2) > Note actually some compilers actually do this even without an attribute. This > is related to the art hack. Out of curiosity, which compiler does it? And what's the art hack?

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #6 from sebor at roguewave dot com 2007-03-15 19:54 --- (In reply to comment #5) I've checked all three but none of them seems to achieve an optimal layout in a modified template case. Let me attach my test program. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2007-03-15 19:55 --- Created an attachment (id=13212) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13212&action=view) test case for data member reordering -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31176

[Bug c++/31176] reorder class data members to minimize space waste

2007-03-15 Thread sebor at roguewave dot com
--- Comment #8 from sebor at roguewave dot com 2007-03-15 23:51 --- Some additional comments on the request precipitated by a discussion with the implementers of another compiler: The rationale for allowing the attribute on individual members is to provide fine-grained control over

[Bug c++/32525] Request for new warning: useless dynamic_casts

2007-07-14 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2007-07-15 00:03 --- In cases when the compiler can figure out that the cast is unnecessary it would be even better if it would optimize it away than to complain to the user about not being able to do it. -- http://gcc.gnu.org/bugzilla

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2007-08-05 00:31 --- There are third party tools that track these types of problems. Some of them have started to make their way into compilers. For example, the HP static analysis tool called Code Adviser is integrated into the HP aCC

[Bug c++/33401] Unwanted memset in default constructor

2007-09-11 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2007-09-12 03:47 --- You remember correctly :) To avoid zeroing it out use 'new buffer' w/o the parentheses. -- sebor at roguewave dot com changed: What|Removed

[Bug c++/33403] "warning: missing sentinel in function call" for 0 rather than NULL

2007-09-11 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2007-09-12 03:56 --- (In reply to comment #1) > This is not a bug, 0 will be pasted as the same size as an int which means it > will most likely not be passed as the same size as a NULL pointer. I don't know about "most lik

[Bug c++/33786] New: "C" data and static const data members mangled the same

2007-10-15 Thread sebor at roguewave dot com
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33786

[Bug c++/20644] New: bogus uninitialized warning on unused variable

2005-03-25 Thread sebor at roguewave dot com
Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: all GCC host triplet: all GCC target triplet: all http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20644

[Bug middle-end/20644] bogus uninitialized warning on unused variable

2005-03-25 Thread sebor at roguewave dot com
--- Additional Comments From sebor at roguewave dot com 2005-03-26 01:08 --- I can imagine that it may not be straightforward to fix but I can't think of a reason why a warning could ever be useful in this case (i.e., when the code is provably safe). I could of course be mi

[Bug c/20951] New: bogus error passing &va_list to va_list*

2005-04-11 Thread sebor at roguewave dot com
g &va_list to va_list* Product: gcc Version: 3.2.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com C

[Bug c/20951] bogus error passing &va_list to va_list*

2005-04-11 Thread sebor at roguewave dot com
--- Additional Comments From sebor at roguewave dot com 2005-04-11 17:33 --- (In reply to comment #1) Right. I understand why it doesn't compile and how to work around it (with gcc at least). What I'm still not convinced of is that it's not a strict conformance bug. The

[Bug c/20951] bogus error passing &va_list to va_list*

2005-04-11 Thread sebor at roguewave dot com
--- Additional Comments From sebor at roguewave dot com 2005-04-11 17:51 --- Yes, I read that comment but I still don't see anything in the standard the footnote is in conflict with and I don't see it on the WG14 DR list(*). If the footnote is bogus and va_list can't

[Bug c/20951] bogus error passing &va_list to va_list*

2005-04-13 Thread sebor at roguewave dot com
--- Additional Comments From sebor at roguewave dot com 2005-04-13 22:06 --- (In reply to comment #5) Thanks for the pointer. Let me try again to explain why I object to the footnote: The footnote assumes that the reader will make the extrapolation that 1) since va_list is an object

[Bug c++/37062] New: missing warning on unreachable return statement

2008-08-08 Thread sebor at roguewave dot com
signedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37062

[Bug c++/37063] New: missing optimiation on unreachable code

2008-08-08 Thread sebor at roguewave dot com
rity: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37063

[Bug c/37064] New: missing warning on pure function with side-effects

2008-08-08 Thread sebor at roguewave dot com
pure function with side-effects Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gc

[Bug c/37064] missing warning on pure function with side-effects

2008-08-08 Thread sebor at roguewave dot com
--- Comment #1 from sebor at roguewave dot com 2008-08-08 19:47 --- Similarly, functions declared with the const attribute such as f1() in the test case below that violate the compiler's assumptions should be diagnosed: $ cat -n t.C && g++ -c -O2 -Wall -W t.C 1

[Bug c++/37070] New: bogus unreachable warning on throw statement

2008-08-09 Thread sebor at roguewave dot com
warning on throw statement Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.

[Bug c++/37070] bogus unreachable warning on throw statement

2008-08-09 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2008-08-09 22:51 --- I'm not sure what you're trying to say but it sure looks like a bug to me. How else is one supposed to throw an exception without triggering this warning? Btw., the argument of a throw expression can throw, a

[Bug c++/37070] bogus unreachable warning on throw statement

2008-08-09 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2008-08-10 02:23 --- My gcc is yesterday's build: gcc version 4.4.0 20080808 (experimental) (GCC) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37070

[Bug c++/37256] extern template / explicit instantiation broken in 4.4.0-pre

2008-08-27 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2008-08-27 16:48 --- Is this by any chance related to bug 24511? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37256

[Bug c++/37404] New: ICE on va_arg and template deduction

2008-09-06 Thread sebor at roguewave dot com
FIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37404

[Bug c++/37405] New: syntax error on __wur in include-fixed/sys/stat.h

2008-09-06 Thread sebor at roguewave dot com
t: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37405

[Bug libstdc++/35176] New: SIGXFSZ in filebuf

2008-02-12 Thread sebor at roguewave dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com GCC build triplet: x86_64-redhat-linux GCC host triplet: x86_64-redhat-linux GCC target triplet: x86_64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35176

[Bug libstdc++/35176] SIGXFSZ in filebuf

2008-02-13 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2008-02-13 15:46 --- I used setrlimit() only to emulate low disk space conditions. The same "problem" occurs in a pure C++ program (i.e., one that makes no POSIX or other non-C++ calls) when it really does run out of disk space.

[Bug libstdc++/35176] SIGXFSZ in filebuf

2008-02-13 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2008-02-13 16:37 --- I understand that POSIX requires the signal but I'm not sure I see what that has to do with filebuf. C++ specifies that filebuf member functions behave "as if" by calling the C stdio functions. See 27

[Bug libstdc++/35176] SIGXFSZ in filebuf

2008-02-13 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2008-02-13 18:15 --- I see I should have checked the actual stdio behavior instead of relying on the standard. Recent Linux and Solaris both do, in fact, generate SIGXFSZ out of C stdio. AIX 5.3 does not, and neither does HP-UX 11.23

[Bug c++/35711] New: bad text in -Wcast-qual warning (forgets volatile)

2008-03-26 Thread sebor at roguewave dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35711

[Bug c++/39159] New: unhelpful attribute warning on matching declaration after definition

2009-02-11 Thread sebor at roguewave dot com
igned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39159

[Bug libstdc++/39168] Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.

2009-02-12 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2009-02-12 16:49 --- (In reply to comment #0) I'm not sure I understand your rationale or I agree that this is a bug. IIUC, string(1, CHAR_MAX) indicates that groups may be of arbitrary length, which includes "123,456" This

[Bug c++/39159] unhelpful attribute warning on matching declaration after definition

2009-02-12 Thread sebor at roguewave dot com
--- Comment #1 from sebor at roguewave dot com 2009-02-12 17:02 --- In addition, as the test case below shows, the warning is issued inconsistently between classes and functions, suggesting that the instance of the warning on the class declaration on line 2 might be a bug rather than a

[Bug libstdc++/39168] Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.

2009-02-14 Thread sebor at roguewave dot com
--- Comment #17 from sebor at roguewave dot com 2009-02-14 21:21 --- Created an attachment (id=17300) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17300&action=view) Unified money_get and num_get test case and results. Attached is a unified test case with test results on

[Bug libstdc++/39168] Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.

2009-02-14 Thread sebor at roguewave dot com
--- Comment #18 from sebor at roguewave dot com 2009-02-14 21:41 --- I was too hasty -- the attached test case is buggy: it's missing a seek to the beginning of the stream after the first extraction, making the results for the num_get part meaningless. (In reply to comme

[Bug libstdc++/39168] Incorrect interpretation of CHAR_MAX inside grouping string in monetary and numeric facets.

2009-02-14 Thread sebor at roguewave dot com
--- Comment #20 from sebor at roguewave dot com 2009-02-14 21:58 --- Created an attachment (id=17301) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17301&action=view) Corrected unified demo. Attached a corrected unified demo with assertions removed and with output on

[Bug c++/39205] Warning when object syntax is used to call a static member function

2009-02-17 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2009-02-17 15:48 --- (In reply to comment #0) > I can't think of a scenario where one would want to write x.f() over X::f() > when f() is static. I'd like a warning for this so I can catch with -Werror. FWIW, I've

[Bug c++/39219] New: attribute deprecated doesn't work with enums

2009-02-17 Thread sebor at roguewave dot com
Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39219

[Bug c++/39219] attribute doesn't work with enums properly

2009-02-17 Thread sebor at roguewave dot com
--- Comment #4 from sebor at roguewave dot com 2009-02-17 21:00 --- Thanks for looking into so quickly! In addition to the missing warnings mentioned in the initial report I would expect a warning for each of the references to e below (i.e., on lines 3, 9, and 15), analogously to those

[Bug c++/39219] attribute doesn't work with enums properly

2009-02-18 Thread sebor at roguewave dot com
--- Comment #6 from sebor at roguewave dot com 2009-02-18 16:50 --- (In reply to comment #5) > Should attribute work on enum constants? Not sure if this is a question for me but IMO, it should. I would expect individual enumerators to be more heavily referenced than their ty

[Bug c++/39637] New: ICE on ill-formed sizeof() in variadic template

2009-04-04 Thread sebor at roguewave dot com
E on ill-formed sizeof() in variadic template Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave d

[Bug c++/39639] New: no diagnostic for ill-formed pack expansion

2009-04-04 Thread sebor at roguewave dot com
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39639

  1   2   >