gccgo-6 installation breaks the Clang compiler

Bug #1637343 reported by max ulidtko
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gccgo-6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:

1) Install Clang

  $ sudo apt-get update && sudo apt-get install -y clang

2) Compile and run a C++ helloworld

  $ cat > hello.cxx << EOF
  #include <iostream>
  int main() { std::cout << "hello world\n"; }
  EOF

  $ clang++ hello.cxx -o hello && ./hello
  hello world

3) Install gccgo-6

  $ sudo apt-get install -y gccgo-6

4) Compile and run the same helloworld again

  $ clang++ hello.cxx -o hello && ./hello
  hello.cxx:1:10: fatal error: 'iostream' file not found
  #include <iostream>
         ^
1 error generated.

Actual result: the error message above. Expected result: clang++ continues to work.

Tested in a clean fresh Docker container.

# lsb_release -rdc
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.