[Bug libstdc++/94051] New: #include & is not enough for operator<

2020-03-05 Thread joerg.rich...@pdv-fs.de
iority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- #include #include std::ostream& func( std::ostream& os, std::string_view v ) { return os << v; } This code re

[Bug c++/92011] New: '' may be used uninitialized in this function with std::optional()

2019-10-07 Thread joerg.rich...@pdv-fs.de
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc < struct Bar { int size_; Bar( int size ) : size_( size ) {} }; template Bar get( T const&a

[Bug c++/91964] Wrong -Wint-in-bool-context warning for enum constant

2019-10-02 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91964 --- Comment #7 from Jörg Richter --- Yes, I changed our code already to if( C != Enum() ) But I still think that an explicit cast should always silence this warning.

[Bug c++/91964] Wrong -Wint-in-bool-context warning for enum constant

2019-10-02 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91964 --- Comment #5 from Jörg Richter --- There needs to be at least a way to suppress the warning with a cast or some other construct (not pragma).

[Bug c++/91964] Wrong -Wint-in-bool-context warning for enum constant

2019-10-02 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91964 --- Comment #2 from Jörg Richter --- The only boolean context I see is the if(...). The if() is never used with enum constants/types, but only bool-s and int-s. So according to the warning name (int-in-bool-context) the warning can be expected in

[Bug c++/91964] New: Wrong -Wint-in-bool-context warning for enum constant

2019-10-02 Thread joerg.rich...@pdv-fs.de
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc <(C) ) return true; // 3 if( static_cast(C) ) return true; // 4 if( static_cast( static_cast(C) ) ) retur

[Bug tree-optimization/91914] [9 Regression] Invalid strlen optimization

2019-09-30 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91914 --- Comment #4 from Jörg Richter --- The patch in comment #2 fixes the problem for us.

[Bug c/91914] New: Invalid strlen optimization

2019-09-26 Thread joerg.rich...@pdv-fs.de
: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.c < #include struct stringpool_t { char stringpool_str4[sizeof("Foo")]; char stringpool_str5[sizeof("Bar")]; }; static const struct stringpool_t stri

[Bug c++/89883] New: Excessive candidates for ambiguous overload in error message

2019-03-29 Thread joerg.rich...@pdv-fs.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- This code: #include enum Foo { Bar }; std::ostream operator<<( std::ostream& os, Foo ); std::ostream operator<<( std::

[Bug c++/89869] New: -fsanitize=undefined miscompilation

2019-03-28 Thread joerg.rich...@pdv-fs.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc <prev_ ? child->prev_->next_ : parent->first_ ) = child->next_; ( child->next_ ? child->next_->prev_ : parent->last_ ) = child->prev_; }

[Bug c++/89850] New: long compile times with -fsanitize=undefined and -Wduplicated-branches

2019-03-27 Thread joerg.rich...@pdv-fs.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc < Stream& operator<<( T const& t ) { return *this; } }; void xxx( Stream& os

[Bug c/89256] New: No optimized division by constant for __int128

2019-02-08 Thread joerg.rich...@pdv-fs.de
Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- Division by constant is not optimized for __int128 dividend. // This function will use shift+multiply int64_t func64( int64_t val ) { return val / 1000; } // This function will

[Bug c++/82008] nonnull attribute and multiple inheritance

2017-08-29 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82008 --- Comment #2 from Jörg Richter --- My original intention was to use the attribute to skip the nullptr check when up-casting. So my preference is to optimize based on the attribute if possible.

[Bug c++/82008] New: nonnull attribute and multiple inheritance

2017-08-28 Thread joerg.rich...@pdv-fs.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc << EOF struct Base1 { char s; }; struct Base2 { char x; }; struct Deriv : Base1, Base2 {}; void funcyyy( Base2* ) __attribute__((nonnull)); void funcx

[Bug libstdc++/81885] operator-> not checked by -D_GLIBCXX_ASSERTIONS

2017-08-18 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81885 --- Comment #2 from Jörg Richter --- Okay, I see your point. But I think calling operator->() to get the pointer is not a very common use-case. Its more like get() is the right function for this task.

[Bug libstdc++/81885] New: operator-> not checked by -D_GLIBCXX_ASSERTIONS

2017-08-18 Thread joerg.rich...@pdv-fs.de
ent: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- unique_ptr::operator* is checked with __glibcxx_assert. But unique_ptr::operator-> uses only _GLIBCXX_DEBUG_PEDASSERT. I think the later can use __glibcxx_asse

[Bug c++/81858] New: Wrong strict-aliasing warning

2017-08-16 Thread joerg.rich...@pdv-fs.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc < struct Quux { void foo() const { Baz baz; if( !baz.val ) { } } }; EOF g++ -O2 -c t.cc -Wall t.cc: In member function 'void Quux::

[Bug tree-optimization/81401] False positive sprintf warning at O2 (-Wformat-overflow)

2017-08-03 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81401 Jörg Richter changed: What|Removed |Added CC||joerg.rich...@pdv-fs.de --- Comment #2

[Bug c++/81675] New: attribute(noreturn) of destructor in :? not honored

2017-08-02 Thread joerg.rich...@pdv-fs.de
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc << EOF struct S { ~S() __attribute__((noreturn)); int a; }; int foo() { false ? 5 : S().a; } EOF g++ -c -Wall t.cc GCC 6.2.0 prints: t.cc: In

[Bug c++/81671] New: std::nullptr_t incompatible to std::nullptr_t

2017-08-02 Thread joerg.rich...@pdv-fs.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- cat > t.cc << EOF #include template struct Bar {}; template struct Bar { template struct Bind { constexpr static int const cb = 0; }; }; int foo() { return Bar:

[Bug c++/70462] Unnecessary "base object constructor" for final classes

2016-03-31 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70462 --- Comment #3 from Jörg Richter --- Well, my real problem is related to coverage analysis. Function coverage will show the base object constructor as not called. But my concrete test case is more complex and involves virtual functions and inhe

[Bug c++/70462] New: Unnecessary "base object constructor" for final classes

2016-03-30 Thread joerg.rich...@pdv-fs.de
nhancement Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- g++ -std=c++11 -c -o t.o -x c++ - << EOF struct Bar final { Bar(); }; Bar::Bar() {} EOF nm t.o gives: 00

[Bug target/66019] New: Corrupt libstdc++ on AIX 6.1

2015-05-05 Thread joerg.rich...@pdv-fs.de
Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Target Milestone: --- Host: powerpc-ibm-aix6.1.0.0 Target: powerpc-ibm-aix6.1.0.0 Build: powerpc-ibm-aix6.1.0.0 I am building GCC 4.9.2 on AIX 6.1 with the same script I used

[Bug gcov-profile/64634] [4.8/4.9 Regression] gcov reports catch(...) as not executed

2015-03-17 Thread joerg.rich...@pdv-fs.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64634 --- Comment #6 from Jörg Richter --- Is this stable enough to be considered for 4.9.3?

[Bug sanitizer/65365] New: false positive signed negation

2015-03-09 Thread joerg.rich...@pdv-fs.de
Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org cat > t.c <

[Bug gcov-profile/64634] New: gcov reports catch(...) as not executed

2015-01-16 Thread joerg.rich...@pdv-fs.de
-profile Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de cat > t.cc < void catchEx() { exit(0); try {} catch( int ) {} } int main() { try { throw 5; } catch(...) { catchEx(); } } EOF g++ -o t t.cc -O0 --coverage

[Bug libstdc++/59603] std::random_shuffle tries to swap element with itself

2014-02-09 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59603 --- Comment #4 from Jörg Richter --- Are you sure that this is not a iter_swap problem? I have found nothing in the standard that iter_swap( x, x ) is undefined. I always thought types do not have to be prepared to handle self move assignment.

[Bug libstdc++/59603] std::random_shuffle tries to swap element with itself

2014-02-04 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59603 Jörg Richter changed: What|Removed |Added CC||joerg.rich...@pdv-fs.de --- Comment #2

[Bug c++/59739] missed optimization: attribute ((pure)) could be honored more often

2014-01-15 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59739 --- Comment #1 from Jörg Richter --- clang seems to optimize all cases.

[Bug other/36368] Fixincludes corrupts sysmacros.h

2014-01-15 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36368 Jörg Richter changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/59821] New: __builtin_LINE and __builtin_FILE for new'd objects is wrong

2014-01-15 Thread joerg.rich...@pdv-fs.de
ormal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de The script below demonstrates that __builtin_LINE used in constructors is different when the object is allocated with new. The same is true for __builtin_FILE

[Bug c++/59739] New: missed optimization: attribute ((pure)) could be honored more often

2014-01-09 Thread joerg.rich...@pdv-fs.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de Created attachment 31786 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31786&action=edit Script for demonstration Attached is a script (t.s

[Bug libstdc++/58825] New: endless loop compiling nested bind expression

2013-10-21 Thread joerg.rich...@pdv-fs.de
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de g++ -std=c++11 -x c++ -c - < using namespace std; struct Win { void setMini( bool ); bool isMini(); }; bool neg( bool val ); void foo( Win* w ) { function a = bind( &Win::setMini,

[Bug c++/57724] wrong error: returning a value from a constructor

2013-06-27 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57724 --- Comment #5 from Jörg Richter --- BTW: There is currently a discussion [1] on this topic on the "ISO C++ Standard - Discussion" list. [1] https://groups.google.com/a/isocpp.org/d/msg/std-discussion/ehqGBMsswjk/nbsubYASnPgJ

[Bug c++/57724] wrong error: returning a value from a constructor

2013-06-26 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57724 --- Comment #2 from Jörg Richter --- You mean the special case for 'void' does not apply in this case? What a pity.

[Bug c++/57724] New: wrong error: returning a value from a constructor

2013-06-26 Thread joerg.rich...@pdv-fs.de
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: joerg.rich...@pdv-fs.de cat > t.cc <

[Bug c++/56104] New: Wrong "dereferencing type-punned pointer" warning

2013-01-25 Thread joerg.rich...@pdv-fs.de
ty: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de cat > t.cc < struct Wrap { inline static void call( Foo cc ) { (cc.*MEMFUNC)(); // <- warning here

[Bug c++/55728] New: std::bad_function_call has misleading what() result

2012-12-18 Thread joerg.rich...@pdv-fs.de
: minor Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de cat t.cc << EOF #include #include int main() { try { std::function()(); } catch( std::exception const& e ) {

[Bug c++/55544] -fexcess-precision=standard is not implemented for C++

2012-12-01 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544 --- Comment #7 from Jörg Richter 2012-12-01 09:53:13 UTC --- I see no reference to -fexcess-precision=standard in (garbage sink) bug 323, do you? So IMHO this is not a dup.

[Bug c++/55544] -fexcess-precision=standard is not implemented for C++

2012-11-30 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544 --- Comment #5 from Jörg Richter 2012-11-30 13:47:24 UTC --- -ffloat-store works. But I dont want to use it in our project. -msse2 -mfpmath=sse does not work. I still see fildll,fnstcw,... instructions in the assembler listing.

[Bug c++/55544] -fexcess-precision=standard is not implemented for C++

2012-11-30 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55544 Jörg Richter changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Component|c

[Bug c/55544] New: invalid optimisation long long->double->long long (with -m32)

2012-11-30 Thread joerg.rich...@pdv-fs.de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de $ cat t.c #include int main( int argc, char** argv ) { long long v1; sscanf( argv[1], "%lld", &a

[Bug bootstrap/52887] Bootstrap on AIX failure: Undefined symbol: .std::function::function(std::function

2012-09-14 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52887 --- Comment #22 from Jörg Richter 2012-09-14 07:58:16 UTC --- I have reduced a real live case. But still using . $ cat t.cc #include struct ClassicUpdate { ClassicUpdate(); }; typedef std::vector ClassicUpdates; struct UpdateData { Clas

[Bug c++/38172] warn_unused_result does not work with structs not containing a copy constructor

2012-06-25 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38172 Jörg Richter changed: What|Removed |Added CC||joerg.rich...@pdv-fs.de --- Comment #5

[Bug bootstrap/52887] Bootstrap on AIX failure: Undefined symbol: .std::function::function(std::function

2012-06-20 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52887 --- Comment #19 from Jörg Richter 2012-06-21 06:58:13 UTC --- See also bug 53713. Hasn't been marked as a dup yet.

[Bug bootstrap/52887] Bootstrap on AIX failure: Undefined symbol: .std::function::function(std::function

2012-06-18 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52887 --- Comment #10 from joerg.rich...@pdv-fs.de 2012-06-18 09:44:30 UTC --- Created attachment 27649 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27649 Fix for undefined references Patch for 4.7.1 with the two missing instantiations. Wo

[Bug libstdc++/53713] undefined reference with -brtl

2012-06-18 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53713 --- Comment #2 from joerg.rich...@pdv-fs.de 2012-06-18 09:39:55 UTC --- (In reply to comment #1) > probably related to PR 52887 Yes, seems to be the same bug. But I've used --disable-bootstrap. I am testing the proposed fixes for PR 5

[Bug libstdc++/53713] New: undefined reference with -brtl

2012-06-18 Thread joerg.rich...@pdv-fs.de
Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/tools/pkg/gcc/4.7.1/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.7.1/lto-wrapper Target: powerpc-ibm-aix5.3.0.0 Configured

[Bug c++/53165] New: multiline raw strings as macro arguments

2012-04-30 Thread joerg.rich...@pdv-fs.de
: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de With GCC 4.7.0: $ cat t.cc #define XXX( x ) x char const* str = XXX( R"( )" ); $ g++ -std=c++0x -o t t.cc t.cc:2:24: error: unterminated raw string t.cc:2:1: error: st

[Bug c++/52723] New: No declaration of __cxa_eh_globals

2012-03-26 Thread joerg.rich...@pdv-fs.de
Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de include/c++/4.7.0/cxxabi.h has the functions __cxa_get_globals() and __cxa_get_globals_fast() returning a pointer to __cxa_eh_globals struct. But __cxa_eh_globals isn't declared i

[Bug c++/51157] New: decltype/typeof of template member with default template argument confuses g++

2011-11-16 Thread joerg.rich...@pdv-fs.de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de cat > t.cc << EOF struct Key { typedef int Ser; }; template struct Shell { template typename T::

[Bug c++/50956] New: -Wcast-qual does not work

2011-11-02 Thread joerg.rich...@pdv-fs.de
Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de -Wcast-qual seems to be broken since at least GCC 4.1.1. cat > t.cc <

[Bug bootstrap/50882] [4.6 Regression] internal compiler error: in extract_insn, at recog.c:2109 on powerpc-ibm-aix5.3.0.0

2011-10-27 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50882 --- Comment #4 from joerg.rich...@pdv-fs.de 2011-10-27 14:44:14 UTC --- Cannot test svn trunk. The loc_t issue still remains, see bug 50874.

[Bug bootstrap/50882] [4.6 Regression] internal compiler error: in extract_insn, at recog.c:2109 on powerpc-ibm-aix5.3.0.0

2011-10-27 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50882 --- Comment #3 from joerg.rich...@pdv-fs.de 2011-10-27 10:10:43 UTC --- Snapshot gcc-4.7-20111022 fails with: ../gcc-4.7-20111022/gcc/tree-diagnostic.c:59: error: conflicting types for ‘loc_t’ /usr/include/sys/localedef31.h:195: error: previous

[Bug bootstrap/50882] New: internal compiler error: in extract_insn, at recog.c:2109 on powerpc-ibm-aix5.3.0.0

2011-10-27 Thread joerg.rich...@pdv-fs.de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de When building GCC 4.6.2 on AIX: configure --enable-languages=c,c++ --disable-bootstrap --disable-nls --with

[Bug bootstrap/50882] internal compiler error: in extract_insn, at recog.c:2109 on powerpc-ibm-aix5.3.0.0

2011-10-27 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50882 --- Comment #1 from joerg.rich...@pdv-fs.de 2011-10-27 09:07:16 UTC --- Forgot to mention that 4.6.1 builds without problems.

[Bug libstdc++/49559] [C++0x] stable_sort calls self-move-assignment operator

2011-07-13 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49559 --- Comment #22 from joerg.rich...@pdv-fs.de 2011-07-13 15:11:21 UTC --- Is it possible to fix it for 4.6.2? Following program is a 4.4 regression (when using -std=gnu++0x): ---8<- #include #include #include using namespace

[Bug libstdc++/49559] New: stable_sort calls self-move-assignment operator

2011-06-27 Thread joerg.rich...@pdv-fs.de
++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de $ cat t.cc #include #include #include struct MyMoveClass { int val_; explicit MyMoveClass( int val = 0 ) : val_( val ) { std::cout << "ctr this=" << this << std::

[Bug preprocessor/48248] [4.5/4.6/4.7 Regression] Wrong error message location when compiling preprocessed code

2011-03-28 Thread joerg.rich...@pdv-fs.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48248 --- Comment #3 from joerg.rich...@pdv-fs.de 2011-03-28 13:51:55 UTC --- (In reply to comment #2) > Can't reproduce this, neither with g++ 4.5, nor trunk. Did you delete the empty lines?

[Bug libstdc++/48313] New: std::bind with template function

2011-03-28 Thread joerg.rich...@pdv-fs.de
...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de $ cat > t.cc << EOF #include template void func( T ) {} int main( int, char** ) { std::bind( func, 0 ); } EOF $ g++ t.cc -std=gnu++0x t.cc: In function 'int main(int, char**)': t.cc:8:27: error: cannot bind 'vo

[Bug preprocessor/48248] New: Wrong error message location when compiling preprocessed code

2011-03-23 Thread joerg.rich...@pdv-fs.de
Component: preprocessor AssignedTo: unassig...@gcc.gnu.org ReportedBy: joerg.rich...@pdv-fs.de $ cat > foobar.h << EOF enum Foo { BAR }; #define BAR(x) #define BARBAR BAR EOF $ cat > main.cc << EOF #include "foobar.h" void func() { (void)BARBAR;