Bug 242739

Summary: resolve_overloaded_unification error when using comma operator with std::endl
Product: [Fedora] Fedora Reporter: Petr Pelan <dr.norden>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-06 12:48:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Preprocessed source that compiler asked me to attach none

Description Petr Pelan 2007-06-05 15:40:35 UTC
Description of problem:
When using whatever, comma, and std::endl enclosed in brackets, the g++
compilation ends with following error:
internal compiler error: in resolve_overloaded_unification

Version-Release number of selected component (if applicable):
the g++ is from package gcc-c++-4.1.1-30


How reproducible:
#include <iostream>

int main() {
        std::cout << "Hello" << (1, std::endl);
}


Steps to Reproduce:
1. Create test.cc file with the above content
2. Compile with g++ -o test test.cc
3. Watch what happens
  
Actual results:
> g++     test.cc   -o test
test.cc: In function 'int main()':
test.cc:4: internal compiler error: in resolve_overloaded_unification, at
cp/pt.c:9896
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccZKSXDk.out file, please attach this to
your bugreport.


Expected results:
Either syntax error report or a succesfull compilation.

Additional info:
N/A

Comment 1 Petr Pelan 2007-06-05 15:40:36 UTC
Created attachment 156233 [details]
Preprocessed source that compiler asked me to attach

Comment 2 Jakub Jelinek 2007-06-06 12:48:35 UTC
Tracking upstream.