[Bug c++/37043] fails to find operator match when constructing object on the fly

2008-08-07 Thread scott at stg dot net
--- Comment #3 from scott at stg dot net 2008-08-07 13:53 --- For clarification, this code compiles & runs in gcc & msvc: FooBar test1("one"); "A">>test1; And this code compiles & runs fine in msvc, but gives compile error in gcc:

[Bug c++/37043] fails to find operator match when constructing object on the fly

2008-08-07 Thread scott at stg dot net
--- Comment #2 from scott at stg dot net 2008-08-07 13:31 --- Okay, so if I change: FooBar& operator>> (const char *s,FooBar& dest) to FooBar operator>> (const char *s,FooBar dest) It now compiles on both msvc and g++, but required functionality (operation affec

[Bug c++/37043] New: fails to find operator match when constructing object on the fly

2008-08-06 Thread scott at stg dot net
1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: scott at stg dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37043